Gentoo Archives: gentoo-user

From: Grant Edwards <grant.b.edwards@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: /dev/ttyUSB* group changed from uucp to root?
Date: Thu, 25 Sep 2014 15:29:02
Message-Id: m01cas$1td$1@ger.gmane.org
In Reply to: Re: [gentoo-user] Re: /dev/ttyUSB* group changed from uucp to root? by Mike Gilbert
1 On 2014-09-25, Mike Gilbert <floppym@g.o> wrote:
2 > On Wed, Sep 24, 2014 at 6:28 PM, Grant Edwards
3 ><grant.b.edwards@×××××.com> wrote:
4 >> On 2014-09-24, Neil Bothwick <neil@××××××××××.uk> wrote:
5 >>> On Wed, 24 Sep 2014 19:42:56 +0000 (UTC), Grant Edwards wrote:
6 >>>
7 >>>> After an update yesterday, I've noticed that the group assigned to
8 >>>> ttyUSB devices has changed from uucp to root. Non-USB serial ports
9 >>>> still seem to be uucp.
10 >>>
11 >>> What did you update? They are still root:uucp here.
12 >>
13 >> Several things got updated, but the most likely suspect is probably
14 >> sys-fs/udev-215-r1 => sys-fs/udev-216. But, I don't see any changes
15 >> in the default rules to account for the change in behavior.
16 >>
17 >
18 > I'm running systemd-216, and I see this in
19 > /lib/udev/rules.d/50-udev-default.rules:
20 >
21 > KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*",
22 > GROUP="uucp"
23 >
24 > I suppose it is possible that some later rule overrides it, but I
25 > don't see anything obvious.
26
27 Yes, I saw that rule (and it hasn't changed recently). I also have a
28 rule that creates a symlink for a certain USB-serial adapter in
29 /etc/udev/rules.d/99-user.rules:
30
31 SUBSYSTEMS=="usb",\
32 ATTRS{product}=="FT232R USB UART",\
33 ATTRS{serial}=="AH026Q3X",\
34 KERNEL=="ttyUSB*",\
35 SYMLINK+="ttyDBG",\
36 GROUP="uucp"
37
38 I didn't used to need to set the GROUP in that rule, the device file
39 just defaulted to having a group of uucp. Yesterday, I had to add the
40 "GROUP" command to get the behavior I always used to get without it.
41
42 --
43 Grant Edwards grant.b.edwards Yow! My haircut is totally
44 at traditional!
45 gmail.com

Replies