nerdexam
LPI

010-160 · Question #43

Which statement about users and user groups is correct?

The correct answer is D. Every user belongs to a least one user group. Every Linux user account is assigned a primary group at creation, guaranteeing that all users belong to at least one group.

Security and File Permissions

Question

Which statement about users and user groups is correct?

Options

  • AA group can only have one main user.
  • BThere can be only one user group on a system.
  • CUsers do not have to belong to a user group.
  • DEvery user belongs to a least one user group.

How the community answered

(33 responses)
  • B
    3% (1)
  • C
    6% (2)
  • D
    91% (30)

Why each option

Every Linux user account is assigned a primary group at creation, guaranteeing that all users belong to at least one group.

AA group can only have one main user.

A single group can contain any number of user members; there is no one-user limit enforced by the Linux group model.

BThere can be only one user group on a system.

Linux systems routinely define dozens or hundreds of groups for system services, applications, and users; the count is unlimited.

CUsers do not have to belong to a user group.

Group membership is mandatory in Linux - every user must have a primary group, so belonging to no group at all is not possible.

DEvery user belongs to a least one user group.Correct

Linux mandates that every user have a primary group, recorded as the GID field in /etc/passwd and defined in /etc/group. Even without explicit supplementary group membership, a user always belongs to their primary group, which is typically created automatically - often sharing the user's name - when the account is added.

Concept tested: Linux mandatory primary group membership for users

Source: https://man7.org/linux/man-pages/man5/group.5.html

Topics

#user groups#group membership#user management#Linux users

Community Discussion

No community discussion yet for this question.

Full 010-160 Practice