Bug 432410 - missing groups for new Administrator user created via System Settings (KCM)
Summary: missing groups for new Administrator user created via System Settings (KCM)
Status: RESOLVED WAITINGFORINFO
Alias: None
Product: neon
Classification: KDE Neon
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Neon Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-02 10:23 UTC by Gauthier
Modified: 2025-09-20 09:36 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gauthier 2021-02-02 10:23:00 UTC
SUMMARY
When adding a new user as Administrator via System Settings, the new user is only added to "sudo" and "username of the new user" groups and not to other default groups such as lpadmin (for printer management), plugdev, cdrom, etc. which are the default groups set to the first "admin" user created when installing the system. This means those new users cannot, for example, manage printers.

STEPS TO REPRODUCE
1. Create a new user via KCM (Open KCM > Users > Add New User), choose Administrator as the Account Type
2. Check the groups the new user was added to (Command: groups "username of the new user" 

OBSERVED RESULT
Groups are : "sudo" and "username of the new user"

EXPECTED RESULT
"sudo" "username of the new user" "lpadmin" "cdrom", etc.


SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.20
KDE Plasma Version: 5.20.5
KDE Frameworks Version: 5.78.0
Qt Version: 5.15.2
Kernel Version: 5.8.0-41-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i5-8350U CPU @ 1.70GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 620
Comment 1 David Edmundson 2021-02-02 10:56:18 UTC
Hardcoding a list of groups at a KDE level would be wrong.

It can be configured at build-time of AccountsService passing  

>meson_options.txt:option('extra_admin_groups', type: 'array', value: [], description: 'Comma-separated list of extra groups that administrator users are part of')

Which should be set by your distribution. Please report there if it's wrong.

For full control of groups see attached wishlist.

*** This bug has been marked as a duplicate of bug 365787 ***
Comment 2 Gauthier 2021-02-02 13:05:39 UTC
(In reply to David Edmundson from comment #1)
> Hardcoding a list of groups at a KDE level would be wrong.

Of course, that would be wrong indeed :) Sorry for not having thought of that. Thanks for the explanation.

> Which should be set by your distribution. Please report there if it's wrong.

Ok so could I just move this bug report under the "neon" category and remove the duplicate status?
 
> For full control of groups see attached wishlist.
> 
> *** This bug has been marked as a duplicate of bug 365787 ***

Well that's exactly where I'd come from and it is the discussion there (with Nate) that led to this bug report!
Comment 3 Nate Graham 2021-02-02 15:39:30 UTC
I think David's point is:

> Which should be set by your distribution. Please report there if it's wrong.
Since your distro is Neon, let's move this there.
Comment 4 Gauthier 2021-02-03 09:29:14 UTC
(In reply to Nate Graham from comment #3)
> I think David's point is:
> 
> > Which should be set by your distribution. Please report there if it's wrong.
> Since your distro is Neon, let's move this there.

Yep that's what I meant in my previous comment:

> Which should be set by your distribution. Please report there if it's wrong.

> > Ok so could I just move this bug report under the "neon" category and remove the duplicate status?

Thanks for doing it.
Comment 5 Carlos De Maine 2025-09-20 09:36:11 UTC
Thank you for your bug report! 
However this bug report was created/provided previous to 01/01/2023 and also has not received any updates since  before 01/01/2025. 
Unfortunately KDE neon no longer provides updates for anything older than noble 24.04 based edition's.
Please upgrade to KDE neon noble and if you can reproduce the issue after upgrading to an active version, feel free to re-open this bug report.
Thanks for understanding!