I need to be able to mount SMB shares while not logged in as "root" in Red Hat 7. Whenever I try to do this, I get the following error: smbmnt must be installed suid root for direct user mounts (500,500) smbmnt failed: 1 mount.smbfs: ioctl failed, res=1 Could not umount /home/mhoffman/test: Operation not permitted Mandrake Linux lets me do this with no problems. How do I set the smbmnt attributes for non-root usage? Thanks in advance...
> Mandrake Linux lets me do this with no problems. How do I set the smbmnt > attributes for non-root usage?chmod a+s /location/to/smbmnt (Security issues with installing SUID binaries, blah blah) Jelmer -- Jelmer Vernooij <jelmer@nl.linux.org> - http://nl.linux.org/~jelmer/ Development And Underdevelopment: http://library.thinkquest.org/C0110231/ Listening to Radio 3FM 22:13:50 up 5:31, 6 users, load average: 1.82, 0.82, 0.71
Cool...this did it! Thanks!! On Sunday, January 13, 2002, at 03:14 PM, Jelmer Vernooij wrote:>> Mandrake Linux lets me do this with no problems. How do I set the smbmnt >> attributes for non-root usage? > > chmod a+s /location/to/smbmnt > > (Security issues with installing SUID binaries, blah blah) > > Jelmer > > -- > Jelmer Vernooij <jelmer@nl.linux.org> - http://nl.linux.org/~jelmer/ > Development And Underdevelopment: http://library.thinkquest.org/C0110231/ > Listening to Radio 3FM > 22:13:50 up 5:31, 6 users, load average: 1.82, 0.82, 0.71 >
How for the really big question...How do I set this up in the /etc/fstab so that the share auto-mounts without mounting in root? I can get it to mount, but without the root account, I can "look, but no touch"... Thanks... On Sunday, January 13, 2002, at 03:14 PM, Jelmer Vernooij wrote:>> Mandrake Linux lets me do this with no problems. How do I set the smbmnt >> attributes for non-root usage? > > chmod a+s /location/to/smbmnt > > (Security issues with installing SUID binaries, blah blah) > > Jelmer > > -- > Jelmer Vernooij <jelmer@nl.linux.org> - http://nl.linux.org/~jelmer/ > Development And Underdevelopment: http://library.thinkquest.org/C0110231/ > Listening to Radio 3FM > 22:13:50 up 5:31, 6 users, load average: 1.82, 0.82, 0.71 >
On Sun, 13 Jan 2002, Marc R. Hoffman wrote:> How for the really big question...How do I set this up in the /etc/fstab > so that the share auto-mounts without mounting in root? I can get it to > mount, but without the root account, I can "look, but no touch"...1. Look at the uid/gid/fmask/dmask options to smbmount. 2. smbmount when run from /etc/fstab does not support all mount options, specifically not the "user" option, so it must be mounted by root. For now try autofs, pam_mount to allow automatic mounting by non-root. /Urban
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: fstab.rtf Type: text/richtext Size: 3182 bytes Desc: fstab.rtf Url : http://lists.samba.org/archive/samba/attachments/20020114/2d806cea/fstab.rtx
> I tried this as well but I didn't have the same success. I'm running SUSE > 7.3 w/ Samba 2.2.2 that I cofigured with the smbmount option.> Here is my command and my results:> jkonkol@suse:~> mount -t smbfs -o username=$ejwk //is1117/public > /home/jkonkol/mnt/test > mount: only root can do that> I have chmod a+s both the /home/jkonkol/mnt and /home/jkonkol/mnt/test > directories.> Anyone have any ideas ??Yes, put the option 'user' in the appropriate line (about the share share you want to give the user access to mount) in /etc/fstab.> On Sunday 13 January 2002 15:34, Marc R. Hoffman wrote: > > Cool...this did it! Thanks!!> > On Sunday, January 13, 2002, at 03:14 PM, Jelmer Vernooij wrote: > > >> Mandrake Linux lets me do this with no problems. How do I set the smbmnt > > >> attributes for non-root usage?> > > chmod a+s /location/to/smbmnt> > > (Security issues with installing SUID binaries, blah blah)> > > Jelmer> > > -- > > > Jelmer Vernooij <jelmer@nl.linux.org> - http://nl.linux.org/~jelmer/ > > > Development And Underdevelopment: http://library.thinkquest.org/C0110231/ > > > Listening to Radio 3FM > > > 22:13:50 up 5:31, 6 users, load average: 1.82, 0.82, 0.71> _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com-- Jelmer Vernooij <jelmer@nl.linux.org> - http://nl.linux.org/~jelmer/ Development And Underdevelopment: http://library.thinkquest.org/C0110231/ Listening to Live: Simple Creed 15:33:12 up 22:50, 10 users, load average: 0.60, 1.66, 1.96