Hands-on task
Revoke a contractor's access
The contract with an external engineer has ended. His account ext_mike must be closed: password login is forbidden, and the login shell is a stub (nologin or false). Don't delete the account itself or the home directory — his scripts are still there and will be sorted out later.
- usermod -L
- nologin
- /etc/shadow
- /etc/passwd
- locking an account