nerdexam
LPI

010-100 · Question #81

Which statement about users and user groups is correct?

The correct answer is D. Every user belongs to a least one user group. In Linux, every user is assigned a primary group at creation time, ensuring all users belong to at least one group by design.

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.
  • CUser do not have to belong to a user group.
  • DEvery user belongs to a least one user group.

How the community answered

(31 responses)
  • A
    3% (1)
  • B
    6% (2)
  • C
    13% (4)
  • D
    77% (24)

Why each option

In Linux, every user is assigned a primary group at creation time, ensuring all users belong to at least one group by design.

AA group can only have one main user.

A group can contain multiple users; there is no concept of a single 'main user' per group in Linux.

BThere can be only one user group on a system.

Linux systems routinely have dozens or hundreds of groups (e.g., sudo, www-data, disk, audio) simultaneously.

CUser do not have to belong to a user group.

Linux requires every user to have a primary group, so a user cannot exist without belonging to at least one group.

DEvery user belongs to a least one user group.Correct

When a user account is created in Linux, the system automatically assigns a primary group - often a group with the same name as the user. This is enforced by the user management subsystem (useradd), so no user can exist without at least one group membership.

Concept tested: Linux primary group assignment for users

Source: https://man7.org/linux/man-pages/man8/useradd.8.html

Topics

#user groups#user management#Linux users

Community Discussion

No community discussion yet for this question.

Full 010-100 Practice