Bird
0
0

What is the primary purpose of the /etc/passwd file in Linux?

easy📝 Conceptual Q11 of 15
Linux CLI - Users and Groups
What is the primary purpose of the /etc/passwd file in Linux?
ATo store encrypted user passwords securely
BTo configure network settings
CTo store user account information accessible to all users
DTo log system errors
Step-by-Step Solution
Solution:
  1. Step 1: Understand the role of /etc/passwd

    The /etc/passwd file contains user account details like username, user ID, group ID, home directory, and shell. It is readable by all users.
  2. Step 2: Differentiate from /etc/shadow

    The encrypted passwords are stored separately in /etc/shadow for security, not in /etc/passwd.
  3. Final Answer:

    To store user account information accessible to all users -> Option C
  4. Quick Check:

    /etc/passwd = user info file [OK]
Quick Trick: Remember: passwd = public user info, shadow = private passwords [OK]
Common Mistakes:
  • Confusing /etc/passwd with /etc/shadow
  • Thinking passwords are stored in /etc/passwd
  • Assuming /etc/passwd stores system logs

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes