Operating Systems
Which Linux file stores the hashed passwords for local user accounts and is readable only by privileged users?
Show the answer
Correct answerD. /etc/shadow
AWhy not this: It lists filesystems to mount at boot and holds no credentials.
BWhy not this: It lists DNS servers for name resolution and has nothing to do with passwords.
CWhy not this: It lists accounts, UIDs and shells, and is readable by all users, so hashes are kept elsewhere.
DWhy this is right: It stores password hashes and aging data, with permissions limited to root or privileged access.
/etc/shadow keeps password hashes and aging information with restricted permissions. /etc/passwd lists accounts but is world-readable, so it does not hold the hashes.