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:
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.
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.
Final Answer:
Encrypted password placeholder -> Option B
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
Master "Users and Groups" in Linux CLI
9 interactive learning modes - each teaches the same concept differently