Remove A User From the specific Group In Linux

Gabriel Turqos

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

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
 

Back
Top