Courseiva
SecurityeasyMultiple ChoiceObjective-mapped

XK0-006 Security Practice Question

Which of the following correctly describes the purpose of the /etc/shadow file?

⚠ Common exam trap

Many exam-takers confuse the purpose of /etc/shadow with /etc/passwd, mistakenly thinking /etc/shadow stores UID, GID, and shell, when in fact those are in /etc/passwd and /etc/shadow specifically holds password hashes and aging data.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

It stores encrypted passwords and password aging fields.

The /etc/shadow file stores encrypted (hashed) user passwords and password aging information such as the date of last password change, minimum/maximum password age, and account expiration. This file is readable only by root to protect password hashes from unauthorized access, unlike /etc/passwd which is world-readable.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • It stores the list of users who can use sudo.

    Why it's wrong here

    That is /etc/sudoers.

  • It stores group memberships and group passwords.

    Why it's wrong here

    That is /etc/group and /etc/gshadow.

  • It stores user account information including UID, GID, and shell.

    Why it's wrong here

    That is /etc/passwd.

  • It stores encrypted passwords and password aging fields.

    Why this is correct

    Correct.

About these practice questions

This XK0-006 question is part of Courseiva's 979-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This XK0-006 practice question is part of Courseiva's free CompTIA certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the XK0-006 exam.