Primary group vs. supplementary groups
Primary
- One per user, set in
/etc/passwd - Owns every file the user creates
- Changed with
usermod -g
Supplementary
- Zero or more, listed in
/etc/group - Grants access without changing file ownership
- Changed with
usermod -aG
wheel is the supplementary group that traditionally grants sudo access on RHEL-family systems — membership in it is a permission grant, not a change of identity.