forked from shadow-maint/shadow
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usermod: allow all group types with -G option
The only way of removing a group from the supplementary list is to use -G option, and list all groups that the user is a member of except for the one that wants to be removed. The problem lies when there's a user that contains both local and remote groups, and the group to be removed is a local one. As we need to include the remote group with -G option the command will fail. This reverts commit 140510d. This way, it would be possible to remove the remote groups from the supplementary list. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1967641 Resolves: shadow-maint#338 Signed-off-by: Iker Pedrosa <ipedrosa@redhat.com>
- Loading branch information
Showing
1 changed file
with
77 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters