Hands-on task
Lock the account
The contractor employee has been let go. Lock their account so they can't log in with a password and their shell is disabled — but don't delete the account itself or the home directory (the files are still needed).
- usermod
- account locking
- /etc/shadow
- /etc/passwd
- nologin