Frank Szczerba on 13 May 2013 08:23:43 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] SAMBA Mount from Linux WTF


It sounds like the files are owned by root on the Linux workstation. Try adding uid=adam,gid=adam (or whatever the right group is) to the mount command.

Frank

On May 12, 2013, at 7:44 PM, Adam Zion <azion1995@gmail.com> wrote:

OK, I'm building a simple Raspberry Pi NAS. Got the hardware working- well, mostly (gonna hold off on installing the mirror drive until everything's 100% operational). But the SAMBA configuration is driving me even further around the bend.

I know that the smb.conf and permissions on the Pi are correct b/c I can connect to that drive and have full RW permissions from Windows. From my primary linux workstation- where all of the data resides at the moment- is another story. I can mount it, but read-only.

The smb.conf on the Pi is as simple as can be:

[global]
workgroup = zionia
encrypt passwords = true
security = user
wins support = yes
read >
[adam]
browsable = yes
read > path = /media/drive1/adam
valid users = adam
writeable = yes

[ilana]
browseable = yes
read >path = /media/drive1/ilana
valid users = ilana
writeable = yes

And, before anyone asks, I created smb users adam + ilana, and know their passwords.

Not sure that the smb.conf on the workstation much matters in this particular case, but I made sure that encrypt passwords was true and security was user on it. The command that I'm using- unsuccessfully- to mount this share is :

sudo mount -t cifs -o username=adam,password=******** //10.0.0.33/adam /home/adam/NAS

The mount succeeds- but read-only. As I said, this happens only on linux- when I mount from Windows 7, it's a full RW drive connection. Here's the kicker: if I sudo a file command from mount on the linux box- say, "sudo rm /home/adam/NAS/gofrakyourself"- it works perfectly.

I have confirmed that permissions are correct on the Pi's filesystem. I ran chown adam adam and chown ilana ilana in the relevant share directory, and ran a chmod 755 adam to give it the correct permissions as well. My next step is to set up a zero-security server and find out what the hell's wrong, but I'd rather not do that for even a microsecond.

-Z


--
Adam+Zion, MSIS, MCSE+I
Registered Linux User #471910
LinkedIn Profile: http://www.linkedin.com/in/azion1995

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug

___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug