Re: the right way to access CDROM as non-root
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. Same
for the floppy drive (with the "floppy" group, but you don't have to
symlink /dev/fd0).
-nicole
At 17:36 on Jan 1, Oohara Yuuma combined all the right letters to say:
> I have a hard disk on /dev/hda and a CDROM drive on /dev/hdc.
> Their permissions are:
> brw-rw---- 1 root disk 3, 0 Jul 6 2000 /dev/hda
> brw-rw---- 1 root disk 22, 0 Jul 6 2000 /dev/hdc
> I want to access the CDROM drive as a non-root user
> (to play my music CD). Adding my ordinary account to
> the group "disk" is dangerous (anyone in the group "disk"
> can reformat my hard disk), so I am looking for another solution.
> The right way seems to be "chgrp cdrom /dev/hdc". Is just
> doing chgrp enough? /sbin/MAKEDEV insists /dev/hdc should be
> root:disk 0660. I don't want to edit /sbin/MAKEDEV because
> it is not a conffile. Is there a possibility that some package
> calls /sbin/MAKEDEV and overwrites my setting of /dev/hdc?
Reply to: