Locking a password is not closing an account
Read the /etc/shadow line field by field, and close an account for every authentication method rather than only for passwords.
20 minutesTechnical content last reviewed on 13 Sept 2026
This lesson is for signed-in learners
Create an account to subscribe and record your learning progress.
What this lesson builds
- Granting exactly the access a person or process needs
- Knowing what the machine exposes, and closing the rest
