public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] /dev/ttyUSB* group changed from uucp to root?
@ 2014-09-24 19:42 Grant Edwards
  2014-09-24 20:02 ` [gentoo-user] " Grant Edwards
  2014-09-24 21:13 ` [gentoo-user] " Neil Bothwick
  0 siblings, 2 replies; 11+ messages in thread
From: Grant Edwards @ 2014-09-24 19:42 UTC (permalink / raw
  To: gentoo-user

After an update yesterday, I've noticed that the group assigned to
ttyUSB devices has changed from uucp to root.  Non-USB serial ports
still seem to be uucp. 

Was this change intentional?  If so, why?

-- 
Grant Edwards               grant.b.edwards        Yow! Can you MAIL a BEAN
                                  at               CAKE?
                              gmail.com            



^ permalink raw reply	[flat|nested] 11+ messages in thread

* [gentoo-user] Re: /dev/ttyUSB* group changed from uucp to root?
  2014-09-24 19:42 [gentoo-user] /dev/ttyUSB* group changed from uucp to root? Grant Edwards
@ 2014-09-24 20:02 ` Grant Edwards
  2014-09-24 21:13 ` [gentoo-user] " Neil Bothwick
  1 sibling, 0 replies; 11+ messages in thread
From: Grant Edwards @ 2014-09-24 20:02 UTC (permalink / raw
  To: gentoo-user

On 2014-09-24, Grant Edwards <grant.b.edwards@gmail.com> wrote:
> After an update yesterday, I've noticed that the group assigned to
> ttyUSB devices has changed from uucp to root.  Non-USB serial ports
> still seem to be uucp. 
>
> Was this change intentional?  If so, why?

P.S. It's easy enough to fix by adding a GROUP="uucp" to the udev rule
     for the serial device in question, but why would users be expected
     to do that in order to get the normal ownership for a serial port?

-- 
Grant Edwards               grant.b.edwards        Yow! HELLO KITTY gang
                                  at               terrorizes town, family
                              gmail.com            STICKERED to death!



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] /dev/ttyUSB* group changed from uucp to root?
  2014-09-24 19:42 [gentoo-user] /dev/ttyUSB* group changed from uucp to root? Grant Edwards
  2014-09-24 20:02 ` [gentoo-user] " Grant Edwards
@ 2014-09-24 21:13 ` Neil Bothwick
  2014-09-24 22:28   ` [gentoo-user] " Grant Edwards
  1 sibling, 1 reply; 11+ messages in thread
From: Neil Bothwick @ 2014-09-24 21:13 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 419 bytes --]

On Wed, 24 Sep 2014 19:42:56 +0000 (UTC), Grant Edwards wrote:

> After an update yesterday, I've noticed that the group assigned to
> ttyUSB devices has changed from uucp to root.  Non-USB serial ports
> still seem to be uucp. 

What did you update? They are still root:uucp here.


-- 
Neil Bothwick

WinErr 01A: Operating system overwritten - Please reinstall all your
software. We are terribly sorry.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [gentoo-user] Re: /dev/ttyUSB* group changed from uucp to root?
  2014-09-24 21:13 ` [gentoo-user] " Neil Bothwick
@ 2014-09-24 22:28   ` Grant Edwards
  2014-09-25 15:00     ` Mike Gilbert
  0 siblings, 1 reply; 11+ messages in thread
From: Grant Edwards @ 2014-09-24 22:28 UTC (permalink / raw
  To: gentoo-user

On 2014-09-24, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Wed, 24 Sep 2014 19:42:56 +0000 (UTC), Grant Edwards wrote:
>
>> After an update yesterday, I've noticed that the group assigned to
>> ttyUSB devices has changed from uucp to root.  Non-USB serial ports
>> still seem to be uucp. 
>
> What did you update? They are still root:uucp here.

Several things got updated, but the most likely suspect is probably 
sys-fs/udev-215-r1 => sys-fs/udev-216.  But, I don't see any changes
in the default rules to account for the change in behavior.

-- 
Grant Edwards               grant.b.edwards        Yow! I want to mail a
                                  at               bronzed artichoke to
                              gmail.com            Nicaragua!



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Re: /dev/ttyUSB* group changed from uucp to root?
  2014-09-24 22:28   ` [gentoo-user] " Grant Edwards
@ 2014-09-25 15:00     ` Mike Gilbert
  2014-09-25 15:28       ` Grant Edwards
  0 siblings, 1 reply; 11+ messages in thread
From: Mike Gilbert @ 2014-09-25 15:00 UTC (permalink / raw
  To: gentoo-user

On Wed, Sep 24, 2014 at 6:28 PM, Grant Edwards
<grant.b.edwards@gmail.com> wrote:
> On 2014-09-24, Neil Bothwick <neil@digimed.co.uk> wrote:
>> On Wed, 24 Sep 2014 19:42:56 +0000 (UTC), Grant Edwards wrote:
>>
>>> After an update yesterday, I've noticed that the group assigned to
>>> ttyUSB devices has changed from uucp to root.  Non-USB serial ports
>>> still seem to be uucp.
>>
>> What did you update? They are still root:uucp here.
>
> Several things got updated, but the most likely suspect is probably
> sys-fs/udev-215-r1 => sys-fs/udev-216.  But, I don't see any changes
> in the default rules to account for the change in behavior.
>

I'm running systemd-216, and I see this in
/lib/udev/rules.d/50-udev-default.rules:

KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*",
GROUP="uucp"

I suppose it is possible that some later rule overrides it, but I
don't see anything obvious.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [gentoo-user] Re: /dev/ttyUSB* group changed from uucp to root?
  2014-09-25 15:00     ` Mike Gilbert
@ 2014-09-25 15:28       ` Grant Edwards
  2014-09-25 21:30         ` Mike Gilbert
  0 siblings, 1 reply; 11+ messages in thread
From: Grant Edwards @ 2014-09-25 15:28 UTC (permalink / raw
  To: gentoo-user

On 2014-09-25, Mike Gilbert <floppym@gentoo.org> wrote:
> On Wed, Sep 24, 2014 at 6:28 PM, Grant Edwards
><grant.b.edwards@gmail.com> wrote:
>> On 2014-09-24, Neil Bothwick <neil@digimed.co.uk> wrote:
>>> On Wed, 24 Sep 2014 19:42:56 +0000 (UTC), Grant Edwards wrote:
>>>
>>>> After an update yesterday, I've noticed that the group assigned to
>>>> ttyUSB devices has changed from uucp to root.  Non-USB serial ports
>>>> still seem to be uucp.
>>>
>>> What did you update? They are still root:uucp here.
>>
>> Several things got updated, but the most likely suspect is probably
>> sys-fs/udev-215-r1 => sys-fs/udev-216.  But, I don't see any changes
>> in the default rules to account for the change in behavior.
>>
>
> I'm running systemd-216, and I see this in
> /lib/udev/rules.d/50-udev-default.rules:
>
> KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*",
> GROUP="uucp"
>
> I suppose it is possible that some later rule overrides it, but I
> don't see anything obvious.

Yes, I saw that rule (and it hasn't changed recently).  I also have a
rule that creates a symlink for a certain USB-serial adapter in
/etc/udev/rules.d/99-user.rules:

SUBSYSTEMS=="usb",\
 ATTRS{product}=="FT232R USB UART",\
 ATTRS{serial}=="AH026Q3X",\
 KERNEL=="ttyUSB*",\
 SYMLINK+="ttyDBG",\
 GROUP="uucp"

I didn't used to need to set the GROUP in that rule, the device file
just defaulted to having a group of uucp. Yesterday, I had to add the
"GROUP" command to get the behavior I always used to get without it.

-- 
Grant Edwards               grant.b.edwards        Yow! My haircut is totally
                                  at               traditional!
                              gmail.com            



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Re: /dev/ttyUSB* group changed from uucp to root?
  2014-09-25 15:28       ` Grant Edwards
@ 2014-09-25 21:30         ` Mike Gilbert
  2014-09-26 16:12           ` Grant Edwards
  0 siblings, 1 reply; 11+ messages in thread
From: Mike Gilbert @ 2014-09-25 21:30 UTC (permalink / raw
  To: gentoo-user

On Thu, Sep 25, 2014 at 11:28 AM, Grant Edwards
<grant.b.edwards@gmail.com> wrote:
> On 2014-09-25, Mike Gilbert <floppym@gentoo.org> wrote:
>> On Wed, Sep 24, 2014 at 6:28 PM, Grant Edwards
>><grant.b.edwards@gmail.com> wrote:
>>> On 2014-09-24, Neil Bothwick <neil@digimed.co.uk> wrote:
>>>> On Wed, 24 Sep 2014 19:42:56 +0000 (UTC), Grant Edwards wrote:
>>>>
>>>>> After an update yesterday, I've noticed that the group assigned to
>>>>> ttyUSB devices has changed from uucp to root.  Non-USB serial ports
>>>>> still seem to be uucp.
>>>>
>>>> What did you update? They are still root:uucp here.
>>>
>>> Several things got updated, but the most likely suspect is probably
>>> sys-fs/udev-215-r1 => sys-fs/udev-216.  But, I don't see any changes
>>> in the default rules to account for the change in behavior.
>>>
>>
>> I'm running systemd-216, and I see this in
>> /lib/udev/rules.d/50-udev-default.rules:
>>
>> KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*",
>> GROUP="uucp"
>>
>> I suppose it is possible that some later rule overrides it, but I
>> don't see anything obvious.
>
> Yes, I saw that rule (and it hasn't changed recently).  I also have a
> rule that creates a symlink for a certain USB-serial adapter in
> /etc/udev/rules.d/99-user.rules:
>
> SUBSYSTEMS=="usb",\
>  ATTRS{product}=="FT232R USB UART",\
>  ATTRS{serial}=="AH026Q3X",\
>  KERNEL=="ttyUSB*",\
>  SYMLINK+="ttyDBG",\
>  GROUP="uucp"
>
> I didn't used to need to set the GROUP in that rule, the device file
> just defaulted to having a group of uucp. Yesterday, I had to add the
> "GROUP" command to get the behavior I always used to get without it.

You could try using udevadm test to see what rules are firing.

sudo udevadm test --action=add /sys/class/tty/ttyUSB0


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [gentoo-user] Re: /dev/ttyUSB* group changed from uucp to root?
  2014-09-25 21:30         ` Mike Gilbert
@ 2014-09-26 16:12           ` Grant Edwards
  2014-09-26 17:59             ` Mike Gilbert
  0 siblings, 1 reply; 11+ messages in thread
From: Grant Edwards @ 2014-09-26 16:12 UTC (permalink / raw
  To: gentoo-user

On 2014-09-25, Mike Gilbert <floppym@gentoo.org> wrote:
> On Thu, Sep 25, 2014 at 11:28 AM, Grant Edwards
><grant.b.edwards@gmail.com> wrote:
>> On 2014-09-25, Mike Gilbert <floppym@gentoo.org> wrote:
>>> On Wed, Sep 24, 2014 at 6:28 PM, Grant Edwards
>>><grant.b.edwards@gmail.com> wrote:
>>>> On 2014-09-24, Neil Bothwick <neil@digimed.co.uk> wrote:
>>>>> On Wed, 24 Sep 2014 19:42:56 +0000 (UTC), Grant Edwards wrote:
>>>>>
>>>>>> After an update yesterday, I've noticed that the group assigned to
>>>>>> ttyUSB devices has changed from uucp to root.  Non-USB serial ports
>>>>>> still seem to be uucp.
>>>>>
>>>>> What did you update? They are still root:uucp here.
>>>>
>>>> Several things got updated, but the most likely suspect is probably
>>>> sys-fs/udev-215-r1 => sys-fs/udev-216.  But, I don't see any changes
>>>> in the default rules to account for the change in behavior.
>>>
>>> I'm running systemd-216, and I see this in
>>> /lib/udev/rules.d/50-udev-default.rules:
>>>
>>> KERNEL=="tty[A-Z]*[0-9]|pppox[0-9]*|ircomm[0-9]*|noz[0-9]*|rfcomm[0-9]*",
>>> GROUP="uucp"

The test trace shows that rule setting the group to 14 (uucp).

>>> I suppose it is possible that some later rule overrides it, but I
>>> don't see anything obvious.

It appears to be overridden by

/lib64/udev/rules.d/99-openocd.rules

Which sets the group to 0 (root).  The weird thing is that I don't
know where that file came from.  Dong an "equery belongs" doesn't show
it belonging to any package. I do have dev-embedded/openocd installed,
but it doesn't own that file...  But, doing an emerge -C openocd
removed the file /lib64/udev/rules.d/99-openocd.rules.

It looks like a bug in the openOCD rules is causing it to recognize
somthing that it shouldn't.

Checking the emerge logs shows that openocd was emerged about a week
prior to the udev update (and I must have been mistaken about exactly
when the failure started).

-- 
Grant



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Re: /dev/ttyUSB* group changed from uucp to root?
  2014-09-26 16:12           ` Grant Edwards
@ 2014-09-26 17:59             ` Mike Gilbert
  2014-09-27  2:08               ` Samuli Suominen
  0 siblings, 1 reply; 11+ messages in thread
From: Mike Gilbert @ 2014-09-26 17:59 UTC (permalink / raw
  To: gentoo-user

On Fri, Sep 26, 2014 at 12:12 PM, Grant Edwards
<grant.b.edwards@gmail.com> wrote:
> Which sets the group to 0 (root).  The weird thing is that I don't
> know where that file came from.  Dong an "equery belongs" doesn't show
> it belonging to any package. I do have dev-embedded/openocd installed,
> but it doesn't own that file...  But, doing an emerge -C openocd
> removed the file /lib64/udev/rules.d/99-openocd.rules.
>

udev rules get installed to /lib/udev/rules.d, not /lib64/udev/rules.d.

Most Gentoo systems have a symlink at /lib pointing at /lib64, but
equery does not look at this. It only looks at the contents of
/var/db/pkg/*/*/CONTENTS, which would contain lib instead of lib64.


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Re: /dev/ttyUSB* group changed from uucp to root?
  2014-09-26 17:59             ` Mike Gilbert
@ 2014-09-27  2:08               ` Samuli Suominen
  2014-09-27  7:18                 ` Neil Bothwick
  0 siblings, 1 reply; 11+ messages in thread
From: Samuli Suominen @ 2014-09-27  2:08 UTC (permalink / raw
  To: gentoo-user


On 26/09/14 20:59, Mike Gilbert wrote:
> On Fri, Sep 26, 2014 at 12:12 PM, Grant Edwards
> <grant.b.edwards@gmail.com> wrote:
>> Which sets the group to 0 (root).  The weird thing is that I don't
>> know where that file came from.  Dong an "equery belongs" doesn't show
>> it belonging to any package. I do have dev-embedded/openocd installed,
>> but it doesn't own that file...  But, doing an emerge -C openocd
>> removed the file /lib64/udev/rules.d/99-openocd.rules.
>>
> udev rules get installed to /lib/udev/rules.d, not /lib64/udev/rules.d.
>
> Most Gentoo systems have a symlink at /lib pointing at /lib64, but
> equery does not look at this. It only looks at the contents of
> /var/db/pkg/*/*/CONTENTS, which would contain lib instead of lib64.
>

That's why latest portage-utils supports:

# qfile -b -v 99-openocd.rules

The new -b argument allows to skip the directory.

- Samuli


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] Re: /dev/ttyUSB* group changed from uucp to root?
  2014-09-27  2:08               ` Samuli Suominen
@ 2014-09-27  7:18                 ` Neil Bothwick
  0 siblings, 0 replies; 11+ messages in thread
From: Neil Bothwick @ 2014-09-27  7:18 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1127 bytes --]

On 27 September 2014 03:08:15 BST, Samuli Suominen <ssuominen@gentoo.org> wrote:
> 
> On 26/09/14 20:59, Mike Gilbert wrote:
> > On Fri, Sep 26, 2014 at 12:12 PM, Grant Edwards
> > <grant.b.edwards@gmail.com> wrote:
> >> Which sets the group to 0 (root).  The weird thing is that I don't
> >> know where that file came from.  Dong an "equery belongs" doesn't
> show
> >> it belonging to any package. I do have dev-embedded/openocd
> installed,
> >> but it doesn't own that file...  But, doing an emerge -C openocd
> >> removed the file /lib64/udev/rules.d/99-openocd.rules.
> >>
> > udev rules get installed to /lib/udev/rules.d, not
> /lib64/udev/rules.d.
> >
> > Most Gentoo systems have a symlink at /lib pointing at /lib64, but
> > equery does not look at this. It only looks at the contents of
> > /var/db/pkg/*/*/CONTENTS, which would contain lib instead of lib64.
> >
> 
> That's why latest portage-utils supports:
> 
> # qfile -b -v 99-openocd.rules
> 
> The new -b argument allows to skip the directory.
> 
> - Samuli

Nice! Thanks for the hint. 
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

[-- Attachment #2: Type: text/html, Size: 1702 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2014-09-27  7:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-24 19:42 [gentoo-user] /dev/ttyUSB* group changed from uucp to root? Grant Edwards
2014-09-24 20:02 ` [gentoo-user] " Grant Edwards
2014-09-24 21:13 ` [gentoo-user] " Neil Bothwick
2014-09-24 22:28   ` [gentoo-user] " Grant Edwards
2014-09-25 15:00     ` Mike Gilbert
2014-09-25 15:28       ` Grant Edwards
2014-09-25 21:30         ` Mike Gilbert
2014-09-26 16:12           ` Grant Edwards
2014-09-26 17:59             ` Mike Gilbert
2014-09-27  2:08               ` Samuli Suominen
2014-09-27  7:18                 ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox