January 2018
Intermediate to advanced
376 pages
8h 45m
English
In this lab, you'll create a couple of new user accounts, set expiration data, and view the results. You can do this lab on either the CentOS or the Ubuntu virtual machine. (The only difference will be with the useradd commands.)
For CentOS:
sudo useradd -e 2023-06-30 samson sudo chage -l samson
For Ubuntu:
sudo useradd -m -d /home/samson -s /bin/bash -e 2023-06-30 sudo chage -l samson
sudo usermod -e 2023-07-31 sudo chage -l samson