From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 6 12:28:01 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A636116A420; Thu, 6 Apr 2006 12:28:01 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mailhost.stack.nl (vaak.stack.nl [131.155.140.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3ECC743D69; Thu, 6 Apr 2006 12:27:58 +0000 (GMT) (envelope-from jilles@stack.nl) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mailhost.stack.nl (Postfix) with ESMTP id 6A419A3005; Thu, 6 Apr 2006 14:27:57 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id 598172287E; Thu, 6 Apr 2006 14:27:57 +0200 (CEST) Date: Thu, 6 Apr 2006 14:27:57 +0200 From: Jilles Tjoelker To: Stefan Sperling Message-ID: <20060406122757.GA1124@stack.nl> References: <1144042356.824.16.camel@shumai.marcuscom.com> <4430BA79.2030403@freebsd.org> <44316387.1090609@FreeBSD.org> <44321277.7040904@FreeBSD.org> <1144133238.9725.32.camel@shumai.marcuscom.com> <20060404114547.GA1613@dice.stsp.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060404114547.GA1613@dice.stsp.lan> X-Operating-System: FreeBSD 5.4-RELEASE-p12 i386 User-Agent: Mutt/1.5.11 Cc: hackers@freebsd.org, Joe Marcus Clarke Subject: Re: RFC: Adding a ``user'' mount option X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Apr 2006 12:28:01 -0000 On Tue, Apr 04, 2006 at 01:45:47PM +0200, Stefan Sperling wrote: > Why do GNOME/KDE rely on /etc/fstab on FreeBSD? > What are admins supposed to do on systems with more than, say, a hundred > users. Having to add a line to /etc/fstab for every user is of course > scriptable, but that does not make it less insane. > As far as I got it, the current design boils down to the user creating > a mount point, and then mounting the media "manually", e.g. > mount /dev/cd0 ~/cdrom. Granted the admin has set vfs.usermount to 1, > of course. I don't really think that user mount has been designed > with /etc/fstab in mind. Consider chown(8)ing the mount points to the current user on login (and root on logout) (using DisplayManager._0.startup and DisplayManager._0.reset or similar). I do this on a few multiuser boxes (at most 5 users per box though) and all users can use the same /etc/fstab lines. The mount will only work for the locally logged in user, which may be considered a bug or a feature ;-) -- Jilles Tjoelker