On Wed, 2004-12-15 at 16:41 -0500, H. S. wrote:
--snip--
Okay, here is what I get when I list the hd[cd] permissions and those of
the device link created by pluggin of a USB stick based on my rule in udev:
~# ls -l /dev/hd[cd] /dev/*hs*
brw-rw---- 1 root disk 22, 0 Dec 15 14:13 /dev/hdc
brw-rw---- 1 root disk 22, 64 Dec 15 14:13 /dev/hdd
brw-rw---- 1 root root 8, 0 Dec 15 16:34 /dev/hs-jd-sda
lrwxrwxrwx 1 root root 9 Dec 15 16:34 /dev/hs-jd-usb -> hs-jd-sda
Regarding the cdrom drives (hd[cd]), I looked into
/etc/udev/permissions.d/udev.permissions and noticed that I have these
lines in this file:
cdemu/*:root:cdrom:0660
ide/*/cd:root:cdrom:0660
ide/*:root:disk:0660 <--- is this deciding the root:disk permissions?
hd[a-s]:root:disk:0660
hd[a-s][0-9]*:root:disk:0660
sd[a-z]:root:disk:0660
sd[a-z][0-9]*:root:disk:0660
sd[a-i][a-z]:root:disk:0660
sd[a-i][a-z][0-9]*:root:disk:0660
Am I supposed to tune this permissions file to make cdrom as root:cdrom?
Also, based on these lines, should an /dev/sda device be made by
/dev/hs-jd-sda and own by root:disk?
Yes, you need to edit the permissions file. The line you'll probably
want to look at for your hd* devices is:
hd[a-s]:root:disk:0660
You'll want to change disk to cdrom. (or, alternately, you can just add
yourself to the disk group.)