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.
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)- A3% (1)
- B6% (2)
- C13% (4)
- D77% (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.
A group can contain multiple users; there is no concept of a single 'main user' per group in Linux.
Linux systems routinely have dozens or hundreds of groups (e.g., sudo, www-data, disk, audio) simultaneously.
Linux requires every user to have a primary group, so a user cannot exist without belonging to at least one group.
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
Community Discussion
No community discussion yet for this question.