Re: mount & umount as ordinary user
-----BEGIN PGP SIGNED MESSAGE-----
On Thursday 03 Apr 2003 1:42 am, Cameron Hutchison wrote:
> Once upon a time Lukas Ruf said...
> > * Lukas Ruf <email@example.com> [2003-04-02 18:33]:
> > > * Kirk Strauser <firstname.lastname@example.org> [2003-04-02 18:28]:
> > > > At 2003-04-02T13:30:54Z, Lukas Ruf <email@example.com> writes:
> > > > > running Debian sid, I can mount arbitrary, in fstab-preconfigured
> > > > > mount points as an ordinary user. However, umount'ing these mount
> > > > > points is possible for root only. Why? I would like to umount
> > > > > those points as an ordinary user as well.
> > > >
> > > > What error do you get when you try to umount those points?
> > >
> > > umount: only root can unmount komsys-pc-bern:/home/ruf from
> > > /home/ruf/Ruf
> > Has anyone experienced the same problem with mount/umount?
> I get the same problem, but it's wierder than it seems.
> If I mount a smbfs or nfs filesystem with the user option, as an ordinary
> user, I cannot umount the filesystem. I get the same error you get.
> If I mount a fat filesystem (from a USB memory device) that also has the
> user option, as an ordinary user, I *can* umount the filesystem.
I think that /bin/mount is set uid root so that it writes to mtab as root.
/sbin/mount.smbfs is a symlink to /usr/sbin/smbmount which isn't set uid
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
-----END PGP SIGNATURE-----