On Monday, 26 June 2023 at 03:16, James Ralston wrote:
[...]
> To remove a user from a group:
> 
>     lgroupmod -m someuser somegroup
[...]
> But groupmod has no ability to remove a user from a group.
[...]
> For shadow-utils 4.10 or later, usermod has a new -r option, so it is
> possible to construct an equivalent:
> 
>     usermod -r -G somegroup someuser
> 
> While this is a vast improvement, I would argue this option was added
> to the wrong utility: groupmod should have the ability to remove a
> user from a group, the same as lgroupmod.  It’s also fairly new (RHEL9
> still has shadow-utils 4.9, for example).

Agreed. Have you tried opening an issue upstream and/or in RHEL
bugzilla?

Regards,
Dominik
-- 
Fedora   https://fedoraproject.org
There should be a science of discontent. People need hard times and
oppression to develop psychic muscles.
        -- from "Collected Sayings of Muad'Dib" by the Princess Irulan
_______________________________________________
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to