From owner-freebsd-questions@FreeBSD.ORG Mon Mar 29 08:51:24 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 4645716A4CE for ; Mon, 29 Mar 2004 08:51:24 -0800 (PST) Received: from voyager.twobirds.us (c-24-18-222-18.client.comcast.net [24.18.222.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1409D43D53 for ; Mon, 29 Mar 2004 08:51:24 -0800 (PST) (envelope-from joshua@twobirds.us) Received: from [12.18.154.2] (helo=localhost) by voyager.twobirds.us with esmtp (Exim 4.30; FreeBSD) id 1B7zyN-0009lL-EN; Mon, 29 Mar 2004 08:50:51 -0800 Date: Mon, 29 Mar 2004 08:51:16 -0800 From: Joshua Lokken To: Jay Moore Message-ID: <20040329165116.GA1876@cs025_2k> Mail-Followup-To: Jay Moore , freebsd-questions@freebsd.org References: <200403272013.40447.jaymo@cromagnon.cullmail.com> <200403281614.53868.malcolm.kay@internode.on.net> <200403281458.02053.jaymo@cromagnon.cullmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200403281458.02053.jaymo@cromagnon.cullmail.com> User-Agent: Mutt/1.4.1i X-Organization: Little to none... cc: freebsd-questions@freebsd.org 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: Mon, 29 Mar 2004 16:51:24 -0000 * Jay Moore [2004-03-29 08:24]: > On Sunday 28 March 2004 12:44 am, Malcolm Kay wrote: > > 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) ... > > > ................... how to make the cd-rw & cd-rom devices > > > usable without requiring him to start a root shell and mount/umount these > > > devices. > > > > 1) Should I automount cd's? > > > > Depends what you mean by auto-mount > > Good point... I guess what I'd really meant is automount in the Windoze sense > of the word; i.e. if I put a music cd in I can play music, if I put a data cd > in I can read the files. I (regular joe user) don't have to su, or sudo to > mount the device, and if I put a music cd in I don't cause a panic by trying Audio CDs don't need to be mounted, but you may need to have similar permissions on the device to get them to play. > to mount the device as a file system. In short, I want an automount that can > figure out whether I've got a music cd or a file system, and "do the right > thing". > > > > 2) What is the "best way" to allow ordinary users to mount cd's? As someone mentioned earlier; /usr/ports/security/sudo allowd you to do exactly what you've asked about. > But there are two things that concern me: > 1) once the file system cd is mounted, a fixed amount of "no activity" time > must pass before it is umount'd I'm not sure what you mean by this. I've never had to wait for any length of time to unmount a CD-ROM, however, you will not be able to unmount it if you are currently in the directory that the drive is mounted on;) > 2) security implications ?!! > > Item 1) is a concern mostly 'cause it's just kind of kludge ("oh yeah, I have > to wait for 60 seconds before I can eject my data cd"). Item 2) is a concern > 'cause college campuses are the most hostile network environments I've ever > seen. Again, I've never heard of this. Anyone else? > I don't mean to sound critical (really)... maybe there's just no good way to > do this in FreeBSD. If that's the case, maybe WinXP is the best route for the > "average user". I think the key here is "average user." -- Joshua Fascinating, a totally parochial attitude. -- Spock, "Metamorphosis", stardate 3219.8