Page MenuHomeSolus

All DEs: Adding a new user post install does not add them to the correct groups
Closed, ResolvedPublic

Description

During installation, adding a user will add them to the following groups:

audio video cdrom dialout fuse users

see: https://github.com/getsolus/os-installer/blob/master/os_installer2/postinstall.py#L398

When adding a new user via the DE's respective control center it does not add them to the correct groups automatically.

$ groups temp
temp : temp
$ groups ninya
ninya : ninya dialout audio video cdrom users lpadmin scanner plugdev fuse sudo

This means that certain functionality does not work for new users added to the system (like audio!)

Related Objects

Event Timeline

joebonrichie triaged this task as Normal priority.
joebonrichie created this task.
joebonrichie moved this task from Backlog to System and Configuration Fixes on the Software board.
joebonrichie renamed this task from Plasma: Adding a new standard user post install does not add them to the correct groups to Plasma: Adding a new user post install does not add them to the correct groups.Sep 7 2022, 3:21 PM

Seems similar on Budgie:

image.png (178×751 px, 30 KB)

One of the test accounts was made with Budgie Control Center, and I think 'test' was created with useradd. I *think.* It was last week xD

joebonrichie renamed this task from Plasma: Adding a new user post install does not add them to the correct groups to All DEs: Adding a new user post install does not add them to the correct groups.Sep 7 2022, 3:28 PM
joebonrichie removed Girtablulu as the assignee of this task.
joebonrichie updated the task description. (Show Details)
joebonrichie added a subscriber: Girtablulu.

Okay a missing oversight since forever then I'm guessing. The question is where do we handle this?

Inquiring if this is still an issue? To my recollection there was work done in the last few months about groups. If this is still an issue, we should fix before 4.4

ermo added a subscriber: ermo.

I'll add this to the 4.4 task list and begin investigating ASAP.

Can confirm this is still an issue with Budgie, using LightDM/slick-greeter.

Accountsservice doesn't seem to have an "default user groups" option like it has for admin groups https://dev.getsol.us/source/accountsservice/browse/master/package.yml$21. Is there somewhere else we should be handling this?

man 8 useradd

-G, --groups GROUP1[,GROUP2,...[,GROUPN]]]
    A list of supplementary groups which the user is also a
    member of. Each group is separated from the next by a comma,
    with no intervening whitespace. The groups are subject to the
    same restrictions as the group given with the -g option. The
    default is for the user to belong only to the initial group.
    In addition to passing in the -G flag, you can add the option
    GROUPS to the file /etc/default/useradd which in turn will
    add all users to those supplementary groups.

Okay i'm not exactly sure where that man page is coming from as support for that doesn't seem to exist in shadow. There is a issue/patch upstream for it https://github.com/shadow-maint/shadow/issues/160