📎 AI Summary:
The thread discusses methods to remove a user from a specific group in Linux. The original poster asks for guidance, and responders suggest using commands like "gpasswd -d user group" or editing the "/etc/group" file; one also mentions "usermod" with root privileges. Overall, the conversation provides practical command-line solutions for managing user group memberships.

Gabriel Turqos

Active Member
Member details
Joined
Mar 11, 2019
Messages
17
Thread Author #1
How can I remove a specific user from the group?
 

Neemobeer

Windows Forum Team
Staff member
Member details
Joined
Jul 4, 2015
Messages
8,995
usermod -G group1,group2,group3 user this without the -a will drop any groups you don't specify, or you can just go edit the /etc/group file and reboot or you can use gpasswd -d user group
 

edizgeorgi

Active Member
Member details
Joined
May 31, 2019
Messages
17
It is easier than you think. Use the usermod command with root privileges. Following example will remove the user george from the root group.

$ sudo usermod -G root george

Referance: User Groups in Linux – POFTUT
 

Solution