QuestionQ10

Users and Groups

Which of the following files assigns a user to their primary group?

  • A /etc/pgroup
  • B /etc/shadow
  • C /etc/group
  • D /etc/passwd
  • E /etc/gshadow
Explanation

Each /etc/passwd record includes a numeric primary group ID (GID), which establishes the user’s primary group. The /etc/group file defines groups and can list supplementary group members. passwd(5) — Linux manual page

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!