1 |
I've been having trouble getting udev to create stuff with the right |
2 |
permissions. The latest is with my phone which has a USB Mass Storrage |
3 |
Interface. I've added this line to my 10-local.rules: |
4 |
|
5 |
# My Phone |
6 |
BUS="usb", SYSFS{interface}="Sony Erics Memory Stick", |
7 |
KERNEL="sd?1",NAME="%k", SYMLINK="phonemem", GROUP="users", MODE="0660" |
8 |
|
9 |
Which sort of works. It creates the /dev/phonemem symlink to /dev/sdc1 |
10 |
when I plug my phone in. However instead of giving it the group |
11 |
permissions I suggest it still selects disk: |
12 |
|
13 |
malory rules.d # ls -l /dev/phonemem |
14 |
lrwxrwxrwx 1 root root 4 Jan 9 01:00 /dev/phonemem -> sdc1 |
15 |
malory rules.d # ls -l /dev/sdc1 |
16 |
brw-rw---- 1 root disk 8, 33 Jan 9 01:00 /dev/sdc1 |
17 |
malory rules.d # ls -l /dev/sdc |
18 |
brw-rw---- 1 root disk 8, 32 Jan 9 01:00 /dev/sdc |
19 |
|
20 |
I was under the impression that configuring things in 10-local should |
21 |
overide any of the following general stuff in the main body of rules. |
22 |
Have I come across a bug or have I just not understood the subtly of |
23 |
creating the rule? |
24 |
|
25 |
-- |
26 |
Alex, homepage: http://www.bennee.com/~alex/ |
27 |
Sherrif: "His story had kind of an odor to it." Inara: "Yes. It's not |
28 |
the only thing about him that does." |
29 |
|
30 |
-- |
31 |
gentoo-user@g.o mailing list |