Mount /cdrom as non-root user - does this actually work for
anyone?
Gautam Gopalakrishnan
ggop at madras.dyndns.org
Sat Jan 3 17:00:58 PST 2004
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
More information about the freebsd-questions
mailing list