Re: the right way to access CDROM as non-root
On Tue, 1 Jan 2002 02:26:58 -0800 (PST),
Nicole Zimmerman <colby@wsu.edu> wrote:
> You should have a "device" /dev/cdrom that is a symbolic link to your real
> CDROM device (/dev/hdc?). This link should be owned by root:cdrom. You can
> then add users to the cdrom group and they can then mount the CDROM.
$ date > foo.txt
$ chmod 000 foo.txt
$ ln -s foo.txt bar.txt
$ ls -l
total 4
lrwxr-xr-x 1 oohara oohara 7 Jan 1 21:04 bar.txt -> foo.txt
---------- 1 oohara oohara 29 Jan 1 21:04 foo.txt
$ cat bar.txt
cat: bar.txt: Permission denied
What is the use of permission of a symlink if I don't have permisssion
of the real file?
> You can
> then add users to the cdrom group and they can then mount the CDROM.
I can't mount my music CD because it has no file system.
I need a direct access to /dev/hdc.
By the way, I can mount a CD as a non-root user.
/etc/fstab says:
/dev/cdrom /cdrom iso9660 defaults,ro,user,noauto 0 0
--
Oohara Yuuma <oohara@libra.interq.or.jp>
Graduate-school of Science, Kyoto University
PGP Key (F464A695) http://www.interq.or.jp/libra/oohara/pub-key.txt
Key fingerprint = 6142 8D07 9C5B 159B C170 1F4A 40D6 F42E F464 A695
I always put away what I take.
--- Ryuji Akai, "Star away"
Reply to: