Remove A User From the specific Group In Linux

Neemobeer

Cloud Security Engineer
Staff member
Joined
Jul 4, 2015
Location
Colorado
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
 
Top Bottom