You are not logged in.

#1 2021-03-12 10:43:49

mpdeimos
Member
From: Munich, Germany
Registered: 2013-04-23
Posts: 10
Website

[SOLVED] brltty: user brltty added to root group

I'm trying to setup some security measures for the Arch users in our company (including me). One of the policy I have in mind is to keep the members in group "root" to a minimum, if possible just root itself.

I stumbled upon the user "brltty" that is in the root group on my system ("brltty" is for braille support and a required dependency of e.g. quemu):

$ cat /etc/group | grep "root" 
root:x:0:brltty,root

The change was introduced in January 2021 by adding the following to a systemd sysuser group patch:

 # for USB I/o via USBFS (/dev/bus/usb/*/*)
 SupplementaryGroups=root

At least the account is disabled, so one cannot login as brltty:

$ cat /etc/shadow | grep brltty
brltty:!*:18660::::::

On a Ubuntu system with brltty installed, the user is not in root group.

I'm wondering if it's really needed that the user is added to the root group or whether there are alternatives?

Thanks!

PS: I'm not sure whether the forum or a bug report is the best place to start with. But decided to discuss first before raising a bug report.

Last edited by mpdeimos (2021-03-19 08:10:29)

Offline

#2 2021-03-16 12:35:14

ponyrider
Member
Registered: 2014-11-18
Posts: 112

Re: [SOLVED] brltty: user brltty added to root group

So, apparently  SupplementaryGroups=root, does not override /etc/group, as far as i can tell

https://github.com/systemd/systemd/issues/9881

Offline

#3 2021-03-17 08:04:14

mpdeimos
Member
From: Munich, Germany
Registered: 2013-04-23
Posts: 10
Website

Re: [SOLVED] brltty: user brltty added to root group

You are right, it's the file usr/lib/sysusers.d/brltty.conf that adds the user to root (twice):

...

# for USB I/o (/dev/bus/usb/*/*)
m brltty root

...

# for creating virtual devices (/dev/uinput)
m brltty root

...

Also checked Ubuntu, and as expected there is no sysusers configuration. I guess I'll just contact the package owner regarding this.

Offline

#4 2021-03-17 08:50:58

ponyrider
Member
Registered: 2014-11-18
Posts: 112

Re: [SOLVED] brltty: user brltty added to root group

Sounds good to me

Please mark as solved

Offline

Board footer

Powered by FluxBB