how to remove a user from a group in linux code example Example: how to remove user from the group gpasswd -d user group # or usermod -R group user_name