From owner-freebsd-questions Thu Sep 17 01:55:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA26387 for freebsd-questions-outgoing; Thu, 17 Sep 1998 01:55:02 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from hotpoint.dcs.qmw.ac.uk (hotpoint.dcs.qmw.ac.uk [138.37.88.162]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA26379 for ; Thu, 17 Sep 1998 01:55:00 -0700 (PDT) (envelope-from scott@dcs.qmw.ac.uk) Received: from brunos-sun.dcs.qmw.ac.uk [138.37.88.185]; by hotpoint.dcs.qmw.ac.uk (8.8.7/8.8.5/S-4.0) with SMTP; id JAA14230; Thu, 17 Sep 1998 09:54:37 +0100 (BST) Received: locally by brunos-sun (SMI-8.6/QMW-client-3.2b); poster "scott"; id JAA20473; Thu, 17 Sep 1998 09:47:11 +0100 Message-ID: <19980917094711.H19870@dcs.qmw.ac.uk> Date: Thu, 17 Sep 1998 09:47:11 +0100 From: Scott Mitchell To: Donald Burr , Dave Ason Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Mount a music cd? Mount not root? References: <360034A0.AECCA795@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Donald Burr on Wed, Sep 16, 1998 at 07:03:53PM -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, Sep 16, 1998 at 07:03:53PM -0700, Donald Burr wrote: > 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* Or use the automounter (amd). A scan through the mail archives over the last six months or so should reveal numerous messages explaining how to do this. HTH, Scott. -- =========================================================================== Scott Mitchell | PGP Key ID |"If I can't have my coffee, I'm just | 0x54B171B9 | like a dried up piece of roast goat" QMW College, London, UK | 0xAA775B8B | -- J. S. Bach. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message