Date: Thu, 17 Sep 1998 09:47:11 +0100 From: Scott Mitchell <scott@dcs.qmw.ac.uk> To: Donald Burr <dburr@pobox.com>, Dave Ason <dgason@mindspring.com> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Mount a music cd? Mount not root? Message-ID: <19980917094711.H19870@dcs.qmw.ac.uk> In-Reply-To: <XFMail.980916190353.dburr@pobox.com>; from Donald Burr on Wed, Sep 16, 1998 at 07:03:53PM -0700 References: <360034A0.AECCA795@mindspring.com> <XFMail.980916190353.dburr@pobox.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <scott@dcs.qmw.ac.uk> | 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980917094711.H19870>