I am using 'smbmount' to mount a Windows file system on a directory in $HOME on my Linux box. This works for a user if smbmount is SUID.
However I don't seem to be able to umount the file system except as root, it just says:- umount: /home/chris/win is not in the fstab (and you are not root)
The umount executable is alread SUID but this doesn't seem to help.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Chris Green chris@areti.co.uk wrote:
I am using 'smbmount' to mount a Windows file system on a directory in $HOME on my Linux box. This works for a user if smbmount is SUID.
However I don't seem to be able to umount the file system except as root, it just says:- umount: /home/chris/win is not in the fstab (and you are not root)
The umount executable is alread SUID but this doesn't seem to help.
*WHISPER* - you know you used smbmount to mount it... take a look at the other smb* commands... there's one called "smbumount" ;)
Cheers, - -- Brett Parker web: http://www.sommitrealweird.co.uk/ email: iDunno@sommitrealweird.co.uk
On 23 May 2005, at 14:55, Brett Parker wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Chris Green chris@areti.co.uk wrote:
I am using 'smbmount' to mount a Windows file system on a directory in $HOME on my Linux box. This works for a user if smbmount is SUID.
However I don't seem to be able to umount the file system except as root, it just says:- umount: /home/chris/win is not in the fstab (and you are not root)
The umount executable is alread SUID but this doesn't seem to help.
*WHISPER* - you know you used smbmount to mount it... take a look at the other smb* commands... there's one called "smbumount" ;)
I don't think that's actually the issue. Chris, you need to set up an entry in /etc/fstab for this with the option user which allows non-root users to mount and umount the share. Something like this:
//sambamachine/samba-share/ /mnt/samba smbfs user 0 0
Cheers
Dave
-- David Reynolds david@reynoldsfamily.org.uk
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
David Reynolds david@reynoldsfamily.org.uk wrote:
I don't think that's actually the issue. Chris, you need to set up an entry in /etc/fstab for this with the option user which allows non-root users to mount and umount the share. Something like this:
//sambamachine/samba-share/ /mnt/samba smbfs user 0 0
fstab entries would be mounted with *mount*, he already said that he was using smbmount, which means that he probably hasn't got them in fstab, and probably only mounts them when needed.
So, smbmount and smbumount are the correct answer. WARNING: if the smbmount stops responding it is occassionally necessary to become root and use umount.
Thanks, - -- Brett Parker web: http://www.sommitrealweird.co.uk/ email: iDunno@sommitrealweird.co.uk
On Mon, May 23, 2005 at 02:55:01PM +0100, Brett Parker wrote:
Chris Green chris@areti.co.uk wrote:
I am using 'smbmount' to mount a Windows file system on a directory in $HOME on my Linux box. This works for a user if smbmount is SUID.
However I don't seem to be able to umount the file system except as root, it just says:- umount: /home/chris/win is not in the fstab (and you are not root)
The umount executable is alread SUID but this doesn't seem to help.
*WHISPER* - you know you used smbmount to mount it... take a look at the other smb* commands... there's one called "smbumount" ;)
... hmph, that's cheating - there's no reference to smbumount in the "See also" section of the smbmount manual page! :-)
Thanks!
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Chris Green chris@areti.co.uk wrote:
On Mon, May 23, 2005 at 02:55:01PM +0100, Brett Parker wrote:
Chris Green chris@areti.co.uk wrote:
I am using 'smbmount' to mount a Windows file system on a directory in $HOME on my Linux box. This works for a user if smbmount is SUID.
However I don't seem to be able to umount the file system except as root, it just says:- umount: /home/chris/win is not in the fstab (and you are not root)
The umount executable is alread SUID but this doesn't seem to help.
*WHISPER* - you know you used smbmount to mount it... take a look at the other smb* commands... there's one called "smbumount" ;)
... hmph, that's cheating - there's no reference to smbumount in the "See also" section of the smbmount manual page! :-)
*grin* - it is mentioned in the AUTHOR section, briefly ;)
Cheers, - -- Brett Parker web: http://www.sommitrealweird.co.uk/ email: iDunno@sommitrealweird.co.uk