/etc/shadow

The root-only file that stores each local account's password hash and password aging rules, kept apart from the world-readable /etc/passwd.

Anyone who reads it can try to crack every local password offline.

In more detail

Separating the hashes means ordinary users can look up account names without seeing anything an attacker could crack. Each line holds the login name, the password hash and aging fields such as when the password must change. A leaked copy lets an attacker guess passwords offline at leisure, so it must stay readable only by root.

Example

Unexpected writes to /etc/shadow mean passwords were changed or accounts added.

Related terms

Taught in

References

Certification courses