How to permanently change permissions on cdrom device

Mike McCarty mike.mccarty at sbcglobal.net
Fri Sep 9 21:30:44 UTC 2005


kevin.kempter at dataintellect.com wrote:
> I need my cdrom/cdwriter device to be readable and executeable by everyone. I 
> can run chmod a+rx /dev/hdc however when I reboot the perms go back to  r+w 
> only by the logged in user see my ls -la listing below:
> 
> Any help would be mucho appreciated...
> 
> $ ls -la /dev/hdc
> brw-------  1 kkempter disk 22, 0 Sep  9 08:38 /dev/hdc
> 

You likely need to change your /etc/fstab entry to allow user access.
Here's mine (FC2) edited to fit on a line here...

/dev/cdrom /mnt/cdrom udf,iso9660 noauto,user,kudzu,ro 0 0

You probably want "/media/cdrom" in place of "/mnt/cdrom".

Here are a couple of "ls" to show you my setup...

$ ls -l /dev/hdc
brw-------  1 jmccarty disk 22, 0 Feb 23  2004 /dev/hdc
$ ls -ld /mnt/cdrom
drwxr-xr-x  2 root root 4096 Oct 20  2004 /mnt/cdrom

If you set up /media/cdrom as shown, and make the suggested
entry in /etc/fstab, you'll probably get better results.

Mike
-- 
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!




More information about the fedora-list mailing list