From owner-freebsd-questions@FreeBSD.ORG Fri May 6 16:10:59 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 111B316A4D4 for ; Fri, 6 May 2005 16:10:59 +0000 (GMT) Received: from out2.smtp.messagingengine.com (out2.smtp.messagingengine.com [66.111.4.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id C32E343D55 for ; Fri, 6 May 2005 16:10:58 +0000 (GMT) (envelope-from list-freebsd-2004@morbius.sent.com) Received: from frontend2.messagingengine.com (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id C4785C8AFFD for ; Fri, 6 May 2005 12:10:57 -0400 (EDT) X-Sasl-enc: 6rdiDUlfLwsM4+bDd60jelV+UYOS3ldZZ4Pl8bHF29bj 1115395856 Received: from gumby.localhost (dsl-80-41-76-239.access.as9105.com [80.41.76.239]) by frontend2.messagingengine.com (Postfix) with ESMTP id DE4EF56D31D for ; Fri, 6 May 2005 12:10:56 -0400 (EDT) From: RW To: freebsd-questions@freebsd.org Date: Fri, 6 May 2005 17:10:29 +0100 User-Agent: KMail/1.8 References: <200505060941.56312@harrymail> In-Reply-To: <200505060941.56312@harrymail> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-6" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200505061710.29621.list-freebsd-2004@morbius.sent.com> Subject: Re: vfs.usermount and directory owner X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 May 2005 16:10:59 -0000 On Friday 06 May 2005 08:41, Emanuel Strobl wrote: > Hello, > > I want to be able to access my cd drive as normal user. As any user, not a > specific one. So it's a problem that I can't mount it to a general > directory like /cdrom since only one user can be owner and it looks like > it's required that the mountpoint belongs to the user, even with > vfs.usermount=1 set. > > I can't see any security reason for that. If I decide to let users mount > something (with vfs.usermount) why is there an extra check regarding the > owner of the mountpoint? > Is there another sysctl which disables that prerequisite or at least shifts > the check to group instead of user id? I asked a very similar question recently. In the end I added chown $USER /dvd to /usr/local/share/config/kdm/Xstartup. This changes the ownership of the mountpoint in-between logging-in and kde (or whatever session you selected) starting; I expect there is an equivalent script for the other login managers. And if you login through a tty, the fbtab method is what you want.