Which of the following files assigns a user to their primary group?
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
/etc/passwd
/etc/group
Community Discussion