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.
Question
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)- B3% (1)
- C6% (2)
- D91% (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.
A single group can contain any number of user members; there is no one-user limit enforced by the Linux group model.
Linux systems routinely define dozens or hundreds of groups for system services, applications, and users; the count is unlimited.
Group membership is mandatory in Linux - every user must have a primary group, so belonging to no group at all is not possible.
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
Community Discussion
No community discussion yet for this question.