Mounting a samba share as a regular user

Michael Gargiullo mgargiullo at warpdrive.net
Wed May 26 16:44:18 UTC 2004


Strange question.

I'm trying to mount a samba share from my workstation.  The box the
share is on is a FC1 machine.  My laptop is a FC2 machine.  When my
laptop was a FC1 machine, I chmod u+s /usr/sbin/smbmount /usr/sbin/mount

and added this to my /etc/fstab


> //server/mgargiullo       /home/mike/shares/mgargiullo      smbfs  
owner,rw,username=mgargiullo,noauto 0 0

and I as the user mike could mount the share.

This doesn't work in FC2.  I tried the same thing, but now I get this
error:

[mike at maverick mike]$ mount //server/public
libsmb based programs must *NOT* be setuid root.
7941: Connection to pita failed
SMB connection failed


I did find a listing in bugzilla where they stated this is a security
hole, and that it would be fixed.  I guess they fixed it.
My question is how can I set things up so a user can mount his own share
directory without being root?

>From /var/log/messages:

May 26 11:30:41 maverick kernel: smbfs: Unrecognized mount option nosuid
May 26 11:30:41 maverick mount.smbfs[7834]: [2004/05/26 11:30:41, 0]
client/smbmount.c:send_fs_socket(406)
May 26 11:30:41 maverick mount.smbfs[7834]:   mount.smbfs: entering
daemon mode for service \\server\mgargiullo, pid=7834
May 26 11:31:25 maverick kernel: SMB connection re-established (-5)
May 26 11:32:32 maverick kernel: smbfs: Unrecognized mount option nosuid
May 26 11:32:32 maverick mount.smbfs[7851]: [2004/05/26 11:32:32, 0]
client/smbmount.c:send_fs_socket(406)
May 26 11:32:32 maverick mount.smbfs[7851]:   mount.smbfs: entering
daemon mode for service \\server\mgargiullo, pid=7851

I searched the archives and found several others asked similar
questions, but without working solutions.

-Mike







More information about the users mailing list