Bird
0
0

What does the second field in the /etc/passwd file represent?

easy📝 Conceptual Q2 of 15
Linux CLI - Users and Groups
What does the second field in the /etc/passwd file represent?
AUser ID (UID)
BEncrypted password placeholder
CUser's home directory
DUser's default shell
Step-by-Step Solution
Solution:
  1. Step 1: Review /etc/passwd file format

    The /etc/passwd file fields are separated by colons. The second field traditionally held the encrypted password but now usually contains a placeholder.
  2. Step 2: Confirm the placeholder usage

    Modern systems use 'x' or '*' in the second field to indicate the password is stored securely in /etc/shadow.
  3. Final Answer:

    Encrypted password placeholder -> Option B
  4. Quick Check:

    Second field = password placeholder [OK]
Quick Trick: Second field in /etc/passwd is a placeholder, not actual password [OK]
Common Mistakes:
  • Confusing second field with UID
  • Thinking it stores the home directory
  • Assuming it stores the shell

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes