You are not logged in.

#1 2010-02-07 13:13:25

GregW
Member
From: 53°24'N 2°35'W
Registered: 2008-02-09
Posts: 56

10-local.rules not setting correct group and permissions

I have a custom rule for one of my removable storage devices. The rule sets the correct symlink, but it doesn't honour the mode and group settings. Here's the rule.

BUS=="scsi", SYSFS{vendor}=="IIT-22  ", KERNEL=="sd?1", MODE="0666", GROUP="datamode" SYMLINK="mymp3"

The group exists in /etc/group and the users who need access to the device are appropriately listed.

udev has always been mu Nemesis, and I'd love to get this sorted!

ls -l /dev/mymp3
lrwxrwxrwx 1 root root 4 2010-02-07 13:03 /dev/mymp3 -> sdb1
[hierro@el-diablo]#                                             
]ls -l /dev/sdb1
brw-rw-rw- 1 root storage 8, 17 2010-02-07 13:03 /dev/sdb1
[hierro@el-diablo]#

Any advice?
Cheers
GregW

Offline

#2 2010-02-11 12:34:21

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: 10-local.rules not setting correct group and permissions

10 is too low a number for the filename. Use e.g. 91, because one of the standard rules files is overruling it (e.g. 50-blah.rules).

And use SYMLINK+= instead of SYMLINK=, because udev may be creating sensible symlinks itself, and you'd be overruling it.

Offline

#3 2010-02-16 15:31:42

GregW
Member
From: 53°24'N 2°35'W
Registered: 2008-02-09
Posts: 56

Re: 10-local.rules not setting correct group and permissions

Hey brebs

brebs wrote:

10 is too low a number for the filename. Use e.g. 91, because one of the standard rules files is overruling it (e.g. 50-blah.rules)..

Thanks for the reply. I always thought that the lower numbered rules too precedent..... I should read the wiki more. I'll try this when I get home.

Cheers
GregW

Offline

Board footer

Powered by FluxBB