I am having a problem letting users mount there samba shares. The root user has no problem mounting . But regular users get the error "mount: only root can do that " when trying to execute the following. mount -rw -t smbfs //jelly-bean-iii/E /home/ca43887/E Any help is appreciated. Thanks, Charles
You need to set the suid bit on the /usr/bin/smbmount, /usr/bin/smbclient, and /usr/bin/smbmnt, then you can use smbmount to mount Samba shares. Alternatively, you could set the suid bit on the /bin/mount command but that could open up other security problems. Road Runner wrote:> I am having a problem letting users mount there samba shares. > The root user has no problem mounting . But regular users get the error > "mount: only root can do that " > when trying to execute the following. > > mount -rw -t smbfs //jelly-bean-iii/E /home/ca43887/E > > Any help is appreciated. > Thanks, > Charles-- Daniell Freed Computer Services Dewitt, Ross, & Stevens S.C. He who fights with monsters might take care lest he thereby become a monster. And if you gaze for long into an abyss, the abyss gazes also into you. Beyond Good and Evil Friedrich Wilhelm Nietzche -------------- next part -------------- HTML attachment scrubbed and removed
On Fri, 8 Sep 2000, Daniell Freed wrote:> You need to set the suid bit on the /usr/bin/smbmount, /usr/bin/smbclient, > and /usr/bin/smbmnt, then you can use smbmount to mount Samba shares.The purpose of having smbmnt is that you do not have to make smbmount suid (smbmount is too complicated to be made suid ...). smbclient is not involved in mounting smbfs so do not make that suid either. smbmnt and smbumount (notice the u) can be made suid and that should work (does for me, but I prefer autofs) for both mounting and umounting. /Urban
Thanks for the clarification. These are things I did not know. Urban Widmark wrote:> On Fri, 8 Sep 2000, Daniell Freed wrote: > > > You need to set the suid bit on the /usr/bin/smbmount, /usr/bin/smbclient, > > and /usr/bin/smbmnt, then you can use smbmount to mount Samba shares. > > The purpose of having smbmnt is that you do not have to make smbmount suid > (smbmount is too complicated to be made suid ...). smbclient is not > involved in mounting smbfs so do not make that suid either. > > smbmnt and smbumount (notice the u) can be made suid and that should work > (does for me, but I prefer autofs) for both mounting and umounting. > > /Urban-- Daniell Freed Computer Services Dewitt, Ross, & Stevens S.C. He who fights with monsters might take care lest he thereby become a monster. And if you gaze for long into an abyss, the abyss gazes also into you. Beyond Good and Evil Friedrich Wilhelm Nietzche -------------- next part -------------- HTML attachment scrubbed and removed
Dear list, I perform mount as user, but the above message always appear, and mounting fail. #mount -t smbfs -o username=[username] //somemachinename/userhome /home/userhome/mnt/SOMEMACHINENAME/homes mount: Only root can do that. As super user, I could do that, but this is not preferable. Please let me know how can I simply mount as user. TIA ++ pit ++ I use Mandrake 9.0, samba 2.2.6.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1> Message: 6 > From: Prianggada I Tanaya<prianggada.indratanaya@indonesian-aerospace.com>> Organization: AIPCM-IAe > To: <samba@samba.org> > Date: Wed, 13 Nov 2002 14:31:32 +0700 > Subject: [Samba] mount: Only root can do that > > Dear list, > > I perform mount as user, but the above message always appear, and > mounting fail. > > #mount -t smbfs -o username=[username] //somemachinename/userhome > /home/userhome/mnt/SOMEMACHINENAME/homes > > mount: Only root can do that. > > As super user, I could do that, but this is not preferable. > Please let me know how can I simply mount as user.Please use 'smbmount -o username=[username] //somemachinename/userhome /home/userhome/mnt/SOMEMACHINENAME/homes' or linneighborhood/komba2/xsmbrowser/gnomba etc. Regards, Buchan - -- |----------------Registered Linux User #182071-----------------| Buchan Milne Mechanical Engineer, Network Manager Cellphone * Work +27 82 472 2231 * +27 21 8828820x121 Stellenbosch Automotive Engineering http://www.cae.co.za GPG Key http://ranger.dnsalias.com/bgmilne.asc 1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE906+VrJK6UGDSBKcRAoL2AKCqiF/VKnhyZT0MIGtk6yq73W/SSgCdGPEy 2rw+ytYAC968FivE9pFeWis=Hmr4 -----END PGP SIGNATURE-----