UDEV rule for rtc: what am I doing wrong?
by mstrimel from LinuxQuestions.org on (#59RC1)
hi,
I need to durably change the permissions on /dev/rtc0 so that another user can write to it. Thus, I wrote a udev rule, ran "udevadm trigger" and rebooted. It did not work.
my custom udev file has one line, as follows:
Code:ACTION=="ADD", ATTR{DEVNAME}=="/dev/rtc0", GROUP="mythtv", MODE="0666"I saved it as /etc/udev/rules.d/40-rtc-permissions.rules
udevadm info returned the following name for my device:
Code:/devices/pnp0/00:02/rtc/rtcWhen I run Code:udevadm test /devices/pnp0/00:02/rtc/rtc, I get a list of the rules being read, with my rule second on the list (that's good, right?), but then this:
Quote:
and the permissions still are incorrect. What am I doing wrong?


I need to durably change the permissions on /dev/rtc0 so that another user can write to it. Thus, I wrote a udev rule, ran "udevadm trigger" and rebooted. It did not work.
my custom udev file has one line, as follows:
Code:ACTION=="ADD", ATTR{DEVNAME}=="/dev/rtc0", GROUP="mythtv", MODE="0666"I saved it as /etc/udev/rules.d/40-rtc-permissions.rules
udevadm info returned the following name for my device:
Code:/devices/pnp0/00:02/rtc/rtcWhen I run Code:udevadm test /devices/pnp0/00:02/rtc/rtc, I get a list of the rules being read, with my rule second on the list (that's good, right?), but then this:
Quote:
Invalid inotify descriptor. DEVPATH=/devices/pnp0/00:02/rtc/rtc0 DEVNAME=/dev/rtc0 MAJOR=249 MINOR=0 ACTION=add SUBSYSTEM=rtc DEVLINKS=/dev/rtc USEC_INITIALIZED=1681953 Unload module index Unloaded link configuration context. |