Multiple choice

Which of the following files stores hashed passwords in Linux?

  1. /etc/shadow

  2. /etc/passwd

  3. /etc/hosts

  4. /tmp/password

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The /etc/shadow file stores encrypted (hashed) user passwords and password aging information, and it is readable only by the root user.