Mount /cdrom as non-root user - does this actually work for anyone?

Stacey Roberts stacey at vickiandstacey.com
Sat Jan 3 17:23:02 PST 2004


Hello,

----- Original Message -----
From: "Gautam Gopalakrishnan <ggop at madras.dyndns.org>"
To: To Chris Pressey
Date: Sun, 04 Jan, 2004 01:11 GMT
Subject: Re: Mount /cdrom as non-root user - does this actually work for anyone?

> On Sat, Jan 03, 2004 at 05:12:41PM -0800, Chris Pressey wrote:
> > On Sun, 4 Jan 2004 11:59:29 +1100
> > Gautam Gopalakrishnan <ggop at madras.dyndns.org> wrote:
> > 
> > > On Sun, Jan 04, 2004 at 12:53:52AM +0000, Stacey Roberts wrote:
> > > > Hello,
> > > > As root I can mount and read the CD fine.., checking for non-root
> > > > user: exit
> > > > ~ $ mount /cdrom
> > > > cd9660: /dev/acd0c: Operation not permitted
> > > > ~ $ mount -t cd9660 /dev/acd0c ~/cdrom
> > > > cd9660: /dev/acd0c: Operation not permitted
> > > > ~ $
> > > > 
> > > > Attempting to mount to mount-point in user home dir:
> > > > ~ $ cd ~
> > > > ~ $ pwd
> > > > /home/stacey
> > > > ~ $ ls -ltra cdrom
> > > > total 6
> > > > drwxr-xr-x 2 stacey stacey 512 Jan 3 23:50 ./
> > > > drwxr-xr-x 31 stacey stacey 2560 Jan 3 23:50 ../
> > > > ~ $ mount -t cd9660 /dev/acd0c ~/cdrom
> > > > cd9660: /dev/acd0c: Operation not permitted
> > > > ~ $
> > > 
> > > chmod +s /sbin/umount /sbin/mount
> > > 
> > > works fine for me (without any other changes necessary). Don't know
> > > if it's the recommended procedure though.
> > > 
> > > Gautam
> > 
> > I worked around this a different way: I chown'd /dev/acd0c to the uid of
> > the user.  Probably *not* the recommended procedure :)
> 
> I guess a cleaner solution is to add the user to the operator group
> and chmod to 664.
> 

Err.., but this *is* part of the procedure in the HandBook (http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#USER-FLOPPYMOUNT) that does not work for me.., 

Regards,

Stacey

> Gautam
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"

-- 
Stacey Roberts
B. Sc (HONS) Computer Science

Web: www.vickiandstacey.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 466 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040104/0bfffbfd/attachment.bin


More information about the freebsd-questions mailing list