Skip to navigation
Removing User from a Group Using gpasswd
04.05.22
Removing User from a Group Using gpasswd Another command that accomplishes similar results is gpasswd. We use this command to remove users from specified groups, unlike with usermod. To remove a user from one specific group we can use gpasswd command: $ sudo gpasswd -d testuser root Removing user testuser from group root $ groups testuser testuser : testuser testgroup1 testgroup2 $ sudo gpasswd -d testuser testgroup1 Removing user testuser from group testgroup1 $ groups testuser testuser : testuser testgroup2
https://linoxide.com/remove-linux-user-from-group/
Reply
Anonymous
Information Epoch 1732499731
Save trees.
Home
Notebook
Contact us