Here is a summary of all the commands required to manage users and groups
Add | Delete | Check list /info | |||
---|---|---|---|---|---|
User | adduser john | deluser john | id john cat /etc/passwd | grep bash | ||
Group | groupadd sales | groupdel sales | cat /etc/group |
Add user to group | Delete user from group |
---|---|
usermod -a -G sales john | usermod -r -G sales john gpasswd -d john sales |