From owner-freebsd-questions@FreeBSD.ORG Sat Mar 27 22:45:07 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 9C98D16A4CF for ; Sat, 27 Mar 2004 22:45:06 -0800 (PST) Received: from smtp3.adl2.internode.on.net (smtp3.adl2.internode.on.net [203.16.214.203]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0455843D1D for ; Sat, 27 Mar 2004 22:45:06 -0800 (PST) (envelope-from malcolm.kay@internode.on.net) Received: from beta.home (ppp130-154.lns1.adl2.internode.on.net [150.101.130.154])i2S6isUK053969; Sun, 28 Mar 2004 16:15:00 +0930 (CST) Content-Type: text/plain; charset="iso-8859-1" From: Malcolm Kay Organization: at home To: jaymo@cromagnon.cullmail.com, freebsd-questions@freebsd.org Date: Sun, 28 Mar 2004 16:14:53 +0930 User-Agent: KMail/1.4.3 References: <200403272013.40447.jaymo@cromagnon.cullmail.com> In-Reply-To: <200403272013.40447.jaymo@cromagnon.cullmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200403281614.53868.malcolm.kay@internode.on.net> Subject: 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 06:45:07 -0000 On Sunday 28 March 2004 11:43, Jay Moore wrote: > I have a FreeBSD 4.9 system; I am also running KDE... > > I'm building this system for my son (college student) who has been (unt= il > now) a Windoze user :( I'm trying to set this sytem up so that he'll = be > able to use it with a minimum of calls to tech support (me). One of the > issues I am struggling with is how to make the cd-rw & cd-rom devices > usable without requiring him to start a root shell and mount/umount the= se > devices. > =2E.. > 1) Should I automount cd's? Depends what you mean by auto-mount > > 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=20 are in order. You can make this happen during the normal boot by adding=20 vfs.usermount=3D1 to /etc/ sysctl.conf The user must also have suitable permissions on the drive i.e. rw on say /dev/acd0c. This of course is a one time operation by root. And he must mount on a mount point for which he has rwx permissions. He may also need to own the directory (I'm not sure about this).=20 He might, for example, create a mount point under his home directory, say /home/fred/mnt Now he should be able to mount the cdrom % /sbin/mount_cd9660 /dev/acd0c /home/fred/mnt and unmount with % /sbin/umount /home/fred/mnt Malcolm