- Add a user
bhoom
to an existing groupsuperman
:sudo usermod -A -g superman bhoom
- remove
bhoom
from a groupsuperhero
:sudo gpasswd -d superhero bhoom
- Create a new group
legends
:sudo groupadd legends
Advertisements
bhoom
to an existing group superman
: sudo usermod -A -g superman bhoom
bhoom
from a group superhero
: sudo gpasswd -d superhero bhoom
legends
:sudo groupadd legends