Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Udev Permissions
Date: Mon, 09 Jan 2006 03:00:32
Message-Id: 7573e9640601081853w34de3089l33be74a675074f6e@mail.gmail.com
In Reply to: [gentoo-user] Udev Permissions by Alex Bennee
1 On 1/8/06, Alex Bennee <alex@××××××.com> wrote:
2 > I've been having trouble getting udev to create stuff with the right
3 > permissions. The latest is with my phone which has a USB Mass Storrage
4 > Interface. I've added this line to my 10-local.rules:
5 >
6 > # My Phone
7 > BUS="usb", SYSFS{interface}="Sony Erics Memory Stick",
8 > KERNEL="sd?1",NAME="%k", SYMLINK="phonemem", GROUP="users", MODE="0660"
9
10 You should be using "==" for the comparisons. "=" is an assignment.
11 You can also use ":=" to disallow changes by later rules (see the
12 current udev man page). So something like this should work better for
13 you:
14
15 BUS=="usb", SYSFS{interface}=="Sony Erics Memory Stick",
16 KERNEL=="sd?1",NAME="%k", SYMLINK="phonemem", GROUP:="users", MODE:="0660"
17
18 -Richard
19
20 --
21 gentoo-user@g.o mailing list