Click to See Complete Forum and Search --> : speaking to SMB


marc_in_lux
10-31-2002, 11:46 AM
I have a Linux computer set up under Redhat 7.2, and it's working nicely. I mount an SMB share on my local network, and that too does work nicely - as long as I'm root.

If I'm logging in as a user, I can browse and read on the share, but not actually write or move files. Checking the permissions in Konqueror I saw root is the one who can.

My 2 days worth of Linux knowledge, I SU'ed in a terminal and tried CHMOD 777 for the /mnt/share folder, and doing it recursively.

Didn't help, permissions don't get changed.

Anybody knows where my thinking goes wrong?

cowanrl
10-31-2002, 02:06 PM
Check out this thread for some help on mounting the SMB shares so that non-root users have write permission:

http://www.linuxnewbie.org/forum/showthread.php?s=&threadid=42967&highlight=smbmount

For more details, look at the man pages for mount and smbmount.

marc_in_lux
11-01-2002, 06:37 AM
Thanks very much - helped me out. I learned a bit about users and groups, and about fstab (before that I just mounted via an entry in rc.local).

So my SMB share is now mounted with a group ID I created specifically for this, and my users belong to this group. The entry in fstab looks like this:

//win/share /mnt/share smbfs gid=503,username=guest,password= 0 0

There's no security on this windows share, as you can see.

After rebooting my share is mounted with the group ID that I have selected and user ID root. But the permissions are still set to read-only for the group.

So, where am I going wrong here...?

cowanrl
11-01-2002, 09:54 AM
One thing I left out of that other thread is the use of the dmask option with the mount and smbmount commands. You need to add:

dmask=775

to the command to give the group write permission also. Your line in /etc/fstab might look like this:

//win/share /mnt/share smbfs gid=503,dmask=775,username=guest,password= 0 0