How can I remove a specific user from the group?
Remove A User From the specific Group In Linux
Collapse
X
-
Tags: None
-
-
To remove a user from a specific group in Linux, you can use the "usermod" command with the option "-G" (remove the user from the specified group) and specify the group name.
Here's the basic syntax:
sudo usermod -G <group-name> <username>
For example, to remove the user "john" from the group "admin", you can run the following command:
sudo usermod -G admin john
Note: You will need superuser (root) privileges to execute this command.Comment
Comment