Re: mount & umount as ordinary user -- PROBLEM FOUND
-----BEGIN PGP SIGNED MESSAGE-----
* Lukas Ruf <ruf@rawip.org> [2003-04-02 21:02]:
> * Lukas Ruf <ruf@rawip.org> [2003-04-02 18:33]:
> > * Kirk Strauser <kirk@strauser.com> [2003-04-02 18:28]:
> > > At 2003-04-02T13:30:54Z, Lukas Ruf <ruf@rawip.org> 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
> >
>
I finally found the problem browsing through the source and reading
the man page over and over again:
man mount
When the proc filesystem is mounted (say at /proc), the files /etc/mtab
and /proc/mounts have very similar contents. The former has somewhat
more information, such as the mount options used, but is not necessar-
ily up-to-date (cf. the -n option below). It is possible to replace
/etc/mtab by a symbolic link to /proc/mounts, but some information is
lost that way, and in particular working with the loop device will be
less convenient, and using the "user" option will fail.
*******************************************************
On sid, /etc/mtab is a symbolic link to /proc/mounts!
Is there any way to remove the symbolic link and remount all the mount points
without rebooting the box? The issue: I am currently remote and must
avoid having the box in question hang over the night...
Would this be worth filing a bug-report to the maintainer of util-linux?
wbr,
Lukas
- --
Lukas Ruf | Wanna know anything about raw |
<http://www.lpr.ch> | IP? <http://www.rawip.org> |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iQCVAwUBPos352g5P0zSC6LtAQElNQP/VyJOBMyykKzarM3ZFPEmLoZvX0ZYTaMd
Jr+1oMgSK+W1kJQyex5hetMVk+stUg7R1pl1N+gQl+UJb2l93l4p6A91M8BKv+ap
VncVOI8WJ+q1TamllwF5fupZhyxJSBucGLFoRCa8AauRp3pmB4nzm7cW0ApPIuyR
ygFu76+7WDo=
=g9nv
-----END PGP SIGNATURE-----
Reply to: