Which of the following commands can remove a user from a group?
grouprm
groupmod
passwd
usergroups
usermod
Referência recomendada para estudo
The usermod -G command is used to change the groups a user belongs to. Note that gpasswd -d is also commonly used for this purpose.
usermod -G
gpasswd -d