I'm attempting to make the device permissions on a hard drive(/dev/sdb) persistent for a particular group in RHEL5. Can anyone point me to to a proper KERNEL line in /etc/udev/rules that would work that attempts the following?
KERNEL=="sdb", NAME="%k", GROUP="group", MODE="666", OPTIONS="last_rule"
That rule looks good.
Have you put it in a file in
/etc/udev/rules.d
before50-udev.rules
? Then did you reboot or run/sbin/udevcontrol reload_rules
and thenudevtrigger
?You can test it like so:
udevtest /block/sdb
Edit: Here is an example that worked for me. In
/etc/udev/rules.d/10-local.rules
:Ran
udevcontrol reload_rules
thenudevtrigger --verbose
. Result:Test:
Edit2: Also you can run
udevcontrol log_priority=debug
to get more info reported via syslog.