- How to add a user:
- How to remove a user:
- How to change a user's default shell
# useradd -u 100 -g staff -d /export/home/scott -m scott where: -u 100 means UID=100 -g 10 means GID=10 -d /export/home/scott is the user's home directory -m means "create the directory" scott is the user to be created
# userdel -r scott where: -r means "remove the user's home directory" scott is the user to be deleted
# usermod -s /usr/bin/bash scott where: /usr/bin/bash is the new shell scott is the account to be modified