From owner-freebsd-questions@FreeBSD.ORG Sun Mar 28 02:38:00 2004 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 82AC916A4CE for ; Sun, 28 Mar 2004 02:38:00 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id E3B4643D1D for ; Sun, 28 Mar 2004 02:37:59 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp130-154.lns1.adl2.internode.on.net [150.101.130.154])i2SAbvwn055351 for ; Sun, 28 Mar 2004 20:07:58 +0930 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: at home Date: Sun, 28 Mar 2004 20:07:57 +0930 User-Agent: KMail/1.4.3 To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200403282007.57322.malcolm.kay@internode.on.net> Subject: Fwd: Re: automounting cd-rom & cd-rw devices 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: Sun, 28 Mar 2004 10:38:00 -0000 ---------- Forwarded Message ---------- Subject: Re: automounting cd-rom & cd-rw devices Date: Sun, 28 Mar 2004 19:20:36 +0930 From: Malcolm Kay To: Rob On Sunday 28 March 2004 17:34, Rob wrote: > Malcolm Kay wrote: > > On Sunday 28 March 2004 11:43, Jay Moore wrote: > >>2) What is the "best way" to allow ordinary users to mount cd's? > > > > The best way is inevitably a matter of opinion. > > But it can be done without installing any additional ports. > > > > First: > > # sysctl vfs.usermount=3D1 > > allows users to mount and then unmount drives provided other things > > are in order. You can make this happen during the normal boot by addi= ng > > vfs.usermount=3D1 > > to /etc/ sysctl.conf > > Remotely, I was following this discussion; I'm suprised by this solutio= n > and I wonder how I ever would be able to find out myself about this > misterious sysctl-magic. > > I did 'apropos usermount', 'man sysctl' and 'man sysctl.conf', and all = did > not give me any hint to the above vfs.usermount solution. > Also 'sysctl -ad | grep vfs.usermount' outputs no info. > > Actually, I had this feeling with other answers on this list: 'set > this-or-that sysctl variable'. I never could find any info on my FreeBS= D > box, to help me further understand. > > What is this sysctl-black-magic about and where is more information? I'm certainly no Guru that knows all about sysctl, and can't recall how I discovered this. However in /usr/share/doc/en/books/faq I find: 9.15. How do I let ordinary users mount floppies, CDROMs and other removable media? Malcolm -------------------------------------------------------