Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 26 Feb 2003 07:24:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 26 Feb 2003 07:24:23 -0500 Received: from elixir.e.kth.se ([130.237.48.5]:63246 "EHLO elixir.e.kth.se") by vger.kernel.org with ESMTP id ; Wed, 26 Feb 2003 07:24:22 -0500 To: Olaf Dietsche Cc: mru@users.sourceforge.net (=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=), miquels@cistron-office.nl (Miquel van Smoorenburg), linux-kernel@vger.kernel.org Subject: Re: About /etc/mtab and /proc/mounts References: <20030219112111.GD130@DervishD> <3E5C8682.F5929A04@daimi.au.dk> <87u1er71d0.fsf@goat.bogus.local> <87el5v6xvj.fsf@goat.bogus.local> From: mru@users.sourceforge.net (=?iso-8859-1?q?M=E5ns_Rullg=E5rd?=) Date: 26 Feb 2003 13:34:23 +0100 In-Reply-To: Olaf Dietsche's message of "Wed, 26 Feb 2003 13:16:00 +0100" Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1323 Lines: 29 Olaf Dietsche 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. It's strange if you can. My mount (fairly recent) looks in fstab to determine whether a user should be allowed to mount a device. However, when unmounting it checks /etc/mtab to make sure it was you who mounted it in the first place, making it impossible to unmount someone else's cdrom. If you use the 'users' (note the 's') option instead any user can mount or unmount the device at any time, mtab being ignored. -- M?ns Rullg?rd mru@users.sf.net - 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/