This is a discussion on UDEV permissions within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> I am running Slackware 10, upgraded to current, with a 2.6.8.1 kernel. I am having some trouble with udev ...
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| I am running Slackware 10, upgraded to current, with a 2.6.8.1 kernel. I am having some trouble with udev permissions. I have a dvd-rom (/dev/hdd) and a dvd-rw (/dev/hdc). I also have /dev/cdrom and /dev/dvd, both of which are symlinks to /dev/hdd. All of these (/dev/hdc, /dev/hdd, /dev/cdrom, and /dev/dvd) are root:cdrom 660. I want to make a /dev/dvdrw which is a symlink to /dev/hdc. What I did is rename /etc/udev/rules.d/udev.rules to /etc/udev/rules.d/50-udev.rules and created a file (/etc/udev/rules.d/10-local.rules with the following line: BUS="ide", KERNEL="hdc", NAME="%k", SYMLINK="dvdrw" I rebooted to see if it worked, and the answer is.... sort of. I now have /dev/hdc root:disk 660, /dev/hdd root:cdrom 660, /dev/cdrom (symlink to /dev/hdd), /dev/dvd (symlink to /dev/hdd, and /dev/dvdrw (symlink to /dev/hdc). What I want is for /dev/hdc to be root:cdrom. I have tried several solutions, but none of them have worked for me. The first was to edit /etc/udev/permissions.d/udev.permissions. Changed the following section: # optical devices sr*:root:cdrom:660 scd*:root:cdrom:660 pcd*:root:cdrom:0660 cdrom*:root:cdrom:0660 dvd:root:cdrom:0660 rdvd:root:cdrom:0660 cdroms/*:root:cdrom:0660 My first sttempt, I changed it to look like this: # optical devices sr*:root:cdrom:660 scd*:root:cdrom:660 pcd*:root:cdrom:0660 cdrom*:root:cdrom:0660 dvd*:root:cdrom:0660 rdvd:root:cdrom:0660 cdroms/*:root:cdrom:0660 No dice. So I tried this: # optical devices sr*:root:cdrom:660 scd*:root:cdrom:660 pcd*:root:cdrom:0660 cdrom*:root:cdrom:0660 dvd:root:cdrom:0660 dvdrw:root:cdrom:0660 rdvd:root:cdrom:0660 cdroms/*:root:cdrom:0660 Still no luck. Does anyone have any ideas? I would like to be able to do this without using chgrp in /etc/rc.d/rc.local. Thanks in advance, Shilo |