Andreas Philipp wrote:
James,
El Jue 04 Nov 2004 16:34, James Knott escribió:
Andreas Philipp wrote:
James,
El Jue 04 Nov 2004 15:24, James Knott escribió:
I've been trying to configure fstab, to allow a user to mount an smb share, but it doesn't seem to work. When I try to use the user or users options, I get an error. Is there any other option or method that allows a user to mount an smb share? It works fine, when mounting as root, without the user option specified.
For users being able to mount shares from Windows boxes in the network, the smbmnt command must have the suid bit set. To do so, do (as root) 'chmod +s /usr/bin/smbmnt'. The same holds true for smbumount, as your users may wish to unmount the previously mounted shares. I guess there may lay your problem.
Regards,
/usr/bin/smbmnt is a sym link, which points to another sym link, that points to /usr/lib/samba/classic/smbmnt. Changing that to suid had no effect.
So what exactly is the error you get when trying to mount smb shares as a user different from root? What are you trying to configure in fstab? To do an interactive mount there is no need to modify anything in /etc/fstab.
One other thing to remember is that the user trying to mount the smb share needs write permission on the mount point, but you certainly have thought of that.
Regards,
Permissions are set to 777. If fstab contains: //OS2/EDRIVE /mnt/os2/e smbfs username=xxxx,password=yyyy,rw,users,noauto 0 0 The error I get is: cannot mount on /mnt/os2/e: Operation not permitted smbmnt failed: 1 With this in fstab: //OS2/EDRIVE /mnt/os2/e smbfs credentials=/home/jknott/.smbpw,uid=jknott,gid=users,fmask=664,dmask=775 0 0 I get: mount: only root can mount //OS2/EDRIVE on /mnt/os2/e Either way, root can mount the share. Incidentally, this is in SuSE 9.0. tnx