Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Sep 1998 19:03:53 -0700 (PDT)
From:      Donald Burr <dburr@pobox.com>
To:        Dave Ason <dgason@mindspring.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   RE: Mount a music cd? Mount not root?
Message-ID:  <XFMail.980916190353.dburr@pobox.com>
In-Reply-To: <360034A0.AECCA795@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <dburr@pobox.com> *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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.980916190353.dburr>