Bug 463744 - Demoting a user to "Standard" does not remove them from group `wheel`
Summary: Demoting a user to "Standard" does not remove them from group `wheel`
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_users (show other bugs)
Version: 5.26.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-02 18:47 UTC by Vagner Lunes
Modified: 2023-01-09 19:10 UTC (History)
2 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 Vagner Lunes 2023-01-02 18:47:22 UTC
The "Users" configuration module adds a user to the `wheel` group when making them an Administrator, but fails to remove them from the group afterwards when setting them back to a Standard user.


STEPS TO REPRODUCE
1. (optional) Create a new user to test this with
2. Make this new user an "Administrator" and apply your new setting
3. Make the new user "Standard" again
4. List users within the `wheel` group somehow (such as running `cat /etc/group | grep wheel`)

OBSERVED RESULT
The user continues to be part of the `wheel` group after being set to Standard

EXPECTED RESULT
The user should have been removed from the group as to not have Administration privileges anymore.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Tested on openSUSE Tumbleweed and Arch Linux
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Comment 1 Nate Graham 2023-01-09 19:10:37 UTC
Confirmed, but our code doesn't do this; it seems like it's a regression in AccountsService, which does the heavy lifting for us. Please report it at https://gitlab.freedesktop.org/groups/accountsservice/-/issues. Thanks!