From owner-freebsd-questions Wed Sep 16 19:09:36 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA13192 for freebsd-questions-outgoing; Wed, 16 Sep 1998 19:09:36 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from control.colossus.dyn.ml.org (206-18-113-248.la.inreach.net [206.18.113.248]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA13184 for ; Wed, 16 Sep 1998 19:09:28 -0700 (PDT) (envelope-from dburr@colossus.dyn.ml.org) Received: (from dburr@localhost) by control.colossus.dyn.ml.org (8.8.8/8.8.8) id TAA12024; Wed, 16 Sep 1998 19:03:53 -0700 (PDT) (envelope-from dburr) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <360034A0.AECCA795@mindspring.com> Date: Wed, 16 Sep 1998 19:03:53 -0700 (PDT) Organization: Computer Help From: Donald Burr To: Dave Ason Subject: RE: Mount a music cd? Mount not root? Cc: freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG My secret spy satellite informs me that on 16-Sep-98, Dave Ason wrote: > Hi there, > > I've got two questions related to mounting file systems. > 1)How do you mount a music cd? I've tried it with the -t cd9660 > option as with data cd's but with no luck. Uhh, you can't. Audio CD's can only be played. If you want to grab the digital data off of an audio CD and stuff it on your hard drive, use the /usr/ports/audio/tosha port. > 2)Is it possible for a user who is not root to mount a file system? > I'd like to setup a FAT file system so that any user can mount it read > only. I don't think so. Linux has the "user" mount option to do this, but (AFAIK) FreeBSD does not. There is a little trick you can use, though, to get around this. Just make the /sbin/mount and /sbin/umount binaries setuid to root, chgrp it to a group (make a new group "mounters" for this purpose), then make these executables NOT executable by everyone else. Then, to allow a user to mount and unmount stuff, just add him/her to the "mounters" group. The permissions of the binaries should look like this: -r-s--x--- 1 root mounters 73728 Jul 22 01:13 /sbin/mount* -r-s--x--- 1 root mounters 126976 Jul 22 01:13 /sbin/umount* --- Donald Burr *NEW EMAIL ADDRESS!* | PGP: Your WWW HomePage: http://DonaldBurr.base.org/ ICQ#16997506 | right to Address: P.O. Box 91212, Santa Barbara, CA 93190-1212 | 'Net privacy. Phone: (805) 957-9666 FAX: (800) 492-5954 | USE IT. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message