Click to See Complete Forum and Search --> : howto allow users to mount smb shares
vhg119
10-16-2002, 01:50 AM
i'm using nautilus to view smb shares but the problem is only root can open the shares.
how can i allow regular user to open shares?
i tried setuid on smbmount but it wouldnt let me run it with that setting.
i'm using redhat 8.0 w/ gnome
cowanrl
10-16-2002, 04:48 AM
To allow non-root users to use smbmount to access smb shares, you need to setuid smbmnt, not smbmount. It is normally in the same directory as smbmount.
smbmount is specifically designed not to run if it is setuid root for security reasons.
If you need help in mounting the smb shares, take a look at this post:
http://www.linuxnewbie.org/forum/showthread.php?s=&threadid=42967&highlight=smbmount
Haseldow
10-16-2002, 08:00 AM
You can also add the users in sudoers (/etc/sudoers):
username localhost=/usr/bin/smbmount, /usr/bin/smbumount
or users can use smbclient (altho this doesen't actually mount the share)