Martin Jürgens wrote:

Hi everyone,

I'm having some trouble with the following udev rule for my dvdrw drive:

KERNEL=="hdc", NAME="hdc", GROUP="dvdrw", MODE="0660"

I placed it in /etc/udev/rules.d/10-udev.rules and applied it using udevstart.The result is the following device node:

brw-rw----  1 root root 22, 0  3. Nov 16:46 /dev/hdc


Well besides the fact I'm using udev-071, I don't have a group "dvdrw", so I used a group that I do have. I added this at the beginning of my 10-udev.rules:

KERNEL=="hdb", NAME="fooey", GROUP="rpc", MODE="0660"

This gave me /dev/fooey, but with the wrong group (was "cdrom"). I found I had to comment out the following 2 lines from 50-udev.rules to get it to work correctly:

# all block devices
#SUBSYSTEM=="block", GROUP="disk"
...
#ENV{ID_CDROM}=="?*",           SYMLINK+="cdrom%e", GROUP="cdrom"

With that, I got the correct group.

So it seems that SUBSYSTEM or ENV rules that appear later can override the group that you specify. This should help you track down the problem.

However, you might want to try udev-071, followed by an etc-update (be sure to accept any changes to 50-udev.rules). My DVD+/-RW device ends up in group "cdrom" automatically, so you would only need to add the appropriate users to that group.

HTH,
-Richard

--
gentoo-user@gentoo.org mailing list

Reply via email to