Learn how to audit users in less than 20 minutes!
Commands (anything that starts with $ means that you have to fill it in, i.e. cd $directory should acutally be something like cd Desktop):
List users: getent passwd
Add user: sudo adduser $user
Delete user and remove files: sudo deluser --remove-home $user
List password information about users: getent shadow
Lock root user: sudo passwd -l root
Change user's password: sudo passwd $user
List password information about specific user: sudo chage -l $user
Change minimum age for user: sudo chage -m $days $user
Change maximum age for user: sudo chage -M $days $user
Change the number of days after a password expires that it will become inactive for user: sudo chage -I $days $user
Change the password expires date for user: sudo chage -E $days_since_1990 $user
List groups: getent group
Make user an administrator: sudo gpasswd -a $user sudo
Change administrator back to standard user: sudo gpasswd -d $user sudo
The operating system used was Ubuntu 14.04 LTS: http://www.ubuntu.com/
The VM used to run Ubuntu 14.04 was VMWare Workstation Player 12.0: https://www.vmware.com/products/playe...
Also, this was recorded with Kazam: https://apps.ubuntu.com/cat/applicati...
Share this YouTube channel with the following link! https://bit.ly/nhmyoutubechannel