primary group
The group named in a user's account record, which new files the user creates belong to by default.
In more detail
It is the GID field of /etc/passwd. A process starts with it as its group identity, and files it creates get that group unless the directory's setgid bit says otherwise. A user's other memberships are supplementary groups.
Related terms
- Unix group — A named set of users with its own GID, used to grant several people or services the same access to files.
- supplementary group — An extra group a user belongs to in addition to the primary group, granting access to that group's files.
- setgid — A permission bit that makes an executable run with the file's group identity, or makes new files in a directory inherit that directory's group.
- /etc/passwd — The world-readable file that lists local accounts, one per line: name, UID, GID, description, home directory and login shell, separated by colons.
Taught in
- Users, UIDs And The Password File — Linux Fundamentals & Systems Administration
- Groups, And How Shared Access Is Granted — Linux Fundamentals & Systems Administration
- Users And Groups From A List, With Passwords That Settle — RHCE in Ansible (EX294): Automate Red Hat Systems
- Drill: People, Passwords And sudo From The Vault — RHCE in Ansible (EX294): Automate Red Hat Systems