SOLVED: rule won't change group or permissions
Quoted 10 lines · Dexter Filmore
Slackware 11.0rc3, kernel 2.6.17.9, udev 097
In ruled.d I added a file dvd.rules whcih contains:
BUS="ide", KERNEL="hdc", SYMLINK+="dvd", GROUP="xcdwrite", MODE="0666" BUS="ide", KERNEL="hdd", SYMLINK+="brenner", GROUP="xcdwrite", MODE="0666"
While the symlinks are set properly and hence the rule seems to be parsed and processed, the group and permissions settings do not take effect. I don't know what I'm doing wrong here.
Solved offlist on ##slackware@freenode.
The dvd.rules file entries above were properly setting ownership, but the default udev.rules file (which is looked after dvd.rules) was changing them to the system default gid of "cdrom." Changing the GROUP="whatever" to GROUP:="whatever" makes it permanent - from udev(7):
:= Assign a value to a key finally; disallow any later changes, which may be used to prevent changes by any later rules.
RW
Signature · 12 lines
http://rlworkman.net ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642 _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net [email protected] https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel