Three important files
# cat /etc/passwd [users ID is save here and root ID is 0]
# cat /etc/shadow [ contains user password (hashed)]
# cat /etc/group [group information saved in this file]
Create user called "Peter"
# useradd -c "Peter Janson" -s /bin /zsh peter
# passwd peter
# ls /home/peter/
# ls -la /home/peter
Note
ls -la /etc/skel/
files are copied from here to users profile created. If this file modified - creating new users will get all the modified directories upon creating the new user.
Example - user Brian with user ID 200
# usradd -c "Brian Janson" - u 200 -g users -s/bin/bash brain
# passwd brian [create passwd for Brian]
# ssh brian@localhost
Login
# id //displays user id//
Create groups called "family"
# groupadd family
Error msg might display if not root user. Switch to root
#su -
# group family
# usrmod -G family brian [braian user is added to group family