Courseiva

LFCS User and Group Management Practice Question

Which THREE fields are part of a standard /etc/group entry?

⚠ Common exam trap

It's easy for candidates to confuse the fields of /etc/group with those of /etc/passwd, mistakenly thinking that a group entry includes a primary GID or home directory, which are user-specific attributes stored in /etc/passwd.

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

✓

Group password (often 'x')

A standard /etc/group entry has four colon-separated fields: group name, group password, group ID (GID), and group members list. Option C (group name) is correct because the first field of each /etc/group line is the group's name, such as 'sudo' or 'developers'. Option A (group password, often 'x') is correct because the second field holds the group password placeholder, typically 'x' when shadow group passwords are used via /etc/gshadow. Option E (group members list) is correct because the fourth field is a comma-separated list of supplementary members of the group. Option B (primary GID of user) is not part of /etc/group; a user's primary GID is stored in the fourth field of /etc/passwd. Option D (home directory of group) does not exist in /etc/group; home directories are per-user fields in /etc/passwd, not per-group fields.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Group password (often 'x')

    Why this is correct

    The group password field, usually shown as 'x', occupies the second colon-separated position in /etc/group, between the group name and GID. It satisfies the stem's requirement for a standard field, since shadowed group passwords live in /etc/gshadow while this placeholder remains in the entry.

  • ✗

    Primary GID of user

    Why it's wrong here

    Not stored in group file; that's in passwd.

  • ✓

    Group name

    Why this is correct

    The group name is the first colon-separated field in every /etc/group line, preceding the optional password placeholder, the numeric GID, and the comma-separated member list. Without it, tools such as `getent group` and `chgrp` could not map a textual group to its GID, so it satisfies the stem's requirement for a standard field.

  • ✗

    Home directory of group

    Why it's wrong here

    Groups do not have home directories.

  • ✓

    Group members list

    Why this is correct

    The fourth colon-separated field of an /etc/group line holds the comma-separated usernames of supplementary members, satisfying the requirement for a standard field. Primary membership is recorded in /etc/passwd instead, so this list excludes users whose primary group is the entry's GID.

About these practice questions

This LFCS question is part of Courseiva's 406-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 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.