Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command sudo usermod -aG <newgroup> <user> behaves like usermod -G in shadow-utils 4.8.1 #921

Open
mgw2013 opened this issue Jan 22, 2024 · 2 comments

Comments

@mgw2013
Copy link

mgw2013 commented Jan 22, 2024

I'm afraid, this looks like a bug...

command sudo usermod -aG <newgroup> <user> behaves like usermod -G in shadow-utils 4.8.1 i. e. all group access for <user> is removed and only <newgroup> is added.

Among others the result was I threw myself out of the sudo group and had to restore everything manually with a life stick...

System:
michael@W520 ~ $ inxi -Sz System: Kernel: 5.15.0-91-generic x86_64 bits: 64 Desktop: Cinnamon 5.8.4 Distro: Linux Mint 21.2 Victoria
man and info reporting shadow-utils 4.8.1 11/24/2022

@alejandro-colomar
Copy link
Collaborator

alejandro-colomar commented Jan 23, 2024

You mean that the bug was introduced in (or slightly before) 4.8.1?
Do you have other shadow versions available? Did you upgrade recently?

@mgw2013
Copy link
Author

mgw2013 commented Jan 27, 2024

@alejandro-colomar
Unable to answer ur 1st question.
No shadow versions.
The system is on latest release and is fully updated
System: Kernel: 5.15.0-91-generic x86_64 bits: 64 Desktop: Cinnamon 5.8.4 Distro: Linux Mint 21.2 Victoria

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants