Skip to Content.
Sympa Menu

sm-discuss - [SM-Discuss] how to allow users to mount/umount cdroms correctly

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Arwed von Merkatz <v.merkatz AT gmx.net>
  • To: sm-discuss AT lists.ibiblio.org
  • Subject: [SM-Discuss] how to allow users to mount/umount cdroms correctly
  • Date: Sun, 8 Dec 2002 18:48:43 +0100

Hi,

i think many people have the problem that with the 'user' directive in
/etc/fstab, a user can mount a cdrom (or any other filesystem using
'user'), but not unmount it. The workaround was using the 'users'
directive, but then every user can unmount it, not only the user that
mounted it.

I googled a bit and found a lfs hint about that:
http://hints.nl.linuxfromscratch.org/hints/mtab.txt

The problem is caused by /etc/mtab being a symlink to /proc/mounts,
making it a regular file solves this.

in short:
cd /etc
rm mtab
touch mtab
chown root:root mtab
chmod 644 mtab
mount -f /
mount -f /proc
mount -af

that did it for me, the lfs hint contains some information about how the
mounting at bootup should work, i looked at our mount.sh, and it seems
it does all that.

--
Arwed
aka alley_cat




Archive powered by MHonArc 2.6.24.

Top of Page