solairis.com

Linux User Administration

Create User

useradd -s /bin/bash -G users,staff,cdrom -g staff -m winston
passwd winston

Modify User

Add User to Group

gpasswd -a winston svnuser
# Add winston to the svnuser group.

Delete User from Group

gpasswd -d winston user
# Remove winston from the user group.

Change Default Group

# as root:
usermod -g users winston
# as the user himself:
newgrp staff