Question 478 of 513
User and Group ManagementhardMultiple SelectObjective-mapped

Quick Answer

The answer is /etc/passwd, /etc/group, and /etc/shadow. These three files form the core local databases for user and group management in Linux, each serving a distinct but interdependent role: /etc/passwd stores user account details like UID, GID, home directory, and shell; /etc/group defines group names, GIDs, and member lists; and /etc/shadow holds encrypted password hashes along with password aging policies. On the Linux Foundation Certified System Administrator LFCS exam, this concept tests your understanding of how authentication and identity management actually work at the file level, often appearing in questions that ask you to identify which files are consulted by commands like useradd or login. A common trap is assuming /etc/passwd stores passwords—it does not; that is the sole job of /etc/shadow, which is only readable by root. To remember the trio, think of the mnemonic "PGS" for Passwd, Group, Shadow—the three pillars of local user management.

LFCS User and Group Management Practice Question

This LFCS practice question tests your understanding of user and group management. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Which THREE files are directly related to user and group management in a Linux system? (Select three.)

Question 1hardmulti select
Full question →

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

/etc/group

The files /etc/passwd, /etc/group, and /etc/shadow are the core local databases for user and group management. /etc/passwd stores user account information (username, UID, GID, home directory, shell), /etc/group stores group definitions (group name, GID, member list), and /etc/shadow stores encrypted password hashes and password aging data. These three files are directly consulted by commands like useradd, usermod, groupadd, and login for authentication and identity management.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • /etc/sudoers

    Why it's wrong here

    Controls sudo access, not user/group management.

  • /etc/login.defs

    Why it's wrong here

    Contains default values for user account creation, but not direct user/group data.

  • /etc/group

    Why this is correct

    Contains group definitions.

    Related concept

    Read the scenario before looking for a memorised answer.

  • /etc/passwd

    Why this is correct

    Contains user account information.

    Related concept

    Read the scenario before looking for a memorised answer.

  • /etc/shadow

    Why this is correct

    Contains encrypted passwords and aging info.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may confuse configuration files like /etc/sudoers or /etc/login.defs with the actual user/group database files, but the question specifically asks for files 'directly related to user and group management'—meaning the files that store the user and group records themselves, not files that configure how those records are created or used.

Detailed technical explanation

How to think about this question

Under the hood, /etc/passwd and /etc/group are world-readable, while /etc/shadow is readable only by root (or the shadow group) to protect password hashes. When a user logs in, the login process reads /etc/passwd to verify the account exists, then checks /etc/shadow for the password hash and aging info; group membership is resolved from /etc/group. In a real-world scenario, if /etc/shadow is missing or corrupted, users cannot authenticate even if /etc/passwd is intact, because the password hash is unavailable.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the LFCS exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related LFCS practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free LFCS practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this LFCS question test?

User and Group Management — This question tests User and Group Management — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: /etc/group — The files /etc/passwd, /etc/group, and /etc/shadow are the core local databases for user and group management. /etc/passwd stores user account information (username, UID, GID, home directory, shell), /etc/group stores group definitions (group name, GID, member list), and /etc/shadow stores encrypted password hashes and password aging data. These three files are directly consulted by commands like useradd, usermod, groupadd, and login for authentication and identity management.

What should I do if I get this LFCS question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This LFCS practice question is part of Courseiva's free Linux Foundation 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 LFCS exam.