Re: About /etc/mtab and /proc/mounts

From: Olaf Dietsche (olaf.dietsche@t-online.de)
Date: Wed Feb 26 2003 - 07:16:00 EST


mru@users.sourceforge.net (Måns Rullgård) writes:

> Olaf Dietsche <olaf.dietsche@t-online.de> writes:
>
>> I thought, this is what /var is for. So, /var/run, /var/lib/misc or
>> /var/etc might be more appropriate?
>
> What if /var is mounted separately?

I didn't think of this, even though I have it separately on my
machine.

>> OTOH, "ln -s /proc/mounts /etc/mtab" works just fine here.
>
> The only problem I have with that is that option 'user' is lost. This
> means that any user can mount /cdrom, but only root can unmount it.

The 'user' option is in /etc/fstab, so this is not a problem. I can
mount _and_ umount /cdrom as a simple user.

Regards, Olaf.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Feb 28 2003 - 22:00:35 EST