Join our Newsletter — 33% off our NHI Course
Governance, Ownership & Risk

/etc/group

← Back to Glossary
By NHI Mgmt Group Updated October 29, 2026 Domain: Governance, Ownership & Risk

/etc/group is the Unix-like system file that stores local group definitions. Each line maps a group name to a password placeholder, group ID and member usernames, and it is consulted by the operating system to resolve supplementary group membership for access control.

How /etc/group works as a local group registry

/etc/group is one of the core Unix-like account database files, alongside /etc/passwd and, on many systems, shadow and directory-backed sources. It is read by system libraries and tools to map a group name to its numeric group ID, password placeholder, and member list.

The file is simple, but its role is foundational: it provides a local, deterministic source for supplementary group membership so the operating system can decide which processes and users inherit which file, device, and service permissions. That makes it part of the access-control substrate, not just a configuration artifact.

What a group entry represents

Each line in /etc/group usually encodes four fields separated by colons, group name, password field, GID, and comma-separated member usernames. The password field is commonly a placeholder on modern systems, because group passwords are rarely used in contemporary administration.

The important security meaning is the group itself. A group is a permissions container, and the numeric GID is what the kernel and userland ultimately use when enforcing access checks. Names are for operators; the GID is what matters to the system.

Because the file is local, it can define groups that exist only on that host. That is useful for portability and recovery, but it also means local drift can create access differences from one system to another if the same group names and IDs are not managed consistently.

Why local group membership matters for authorization

Group membership is one of the main ways Unix-like systems implement shared access to files, directories, sockets, and administrative functions. A process can gain effective access through its primary group or supplementary groups, even when the individual account does not own the resource.

This is why /etc/group matters operationally: a single membership entry can expand access across many paths that are protected only by group permissions. The file therefore influences privilege distribution, separation of duties, and how quickly access changes take effect after account updates.

When the file is consulted correctly, it supports least privilege by letting administrators grant narrowly scoped shared access without making resources world-readable or giving users elevated individual rights.

Operational considerations for maintaining /etc/group

Administrators should treat /etc/group as authoritative only for the local host and understand how it interacts with centralized identity sources, NSS configuration, and directory services. If the system resolves groups from multiple backends, the effective membership set may be broader than the flat file alone suggests.

Changes to the file should be controlled carefully, because a malformed line, duplicate GID, or unexpected group rename can break access checks or make permissions ambiguous. A good operational habit is to verify both the syntax and the effective membership view that applications and shells actually see.

For systems with automation, build pipelines, or configuration management, the file should be managed consistently so that group names, GIDs, and member lists do not diverge across environments.

Risk and Threat Considerations

The main security risk is overbroad or unintended group membership, because group-based permissions can quietly expand read, write, or administrative access across many files and services. If an attacker or insider can alter local group entries, they may be able to convert a low-privilege account into one with materially broader access.

Failure mechanism: If the system trusts a stale, tampered, or inconsistently managed /etc/group entry, access decisions can be made on the basis of incorrect supplementary membership, enabling unauthorized file access or privilege expansion.

Impact: The result can be confidentiality loss, unintended modification of protected resources, lateral movement through shared access paths, or persistence through membership changes that are not noticed promptly.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

NIST SP 800-53 Rev 5, NIST CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-53 Rev 5AC-2 — Account Management/etc/group governs group membership that drives account access decisions.
AC-6 — Least PrivilegeSupplementary group membership can expand what a user or process may access.
CM-6 — Configuration SettingsThe file is a security-relevant host configuration that affects authorization behavior.
Recommendation — Review and control group membership changes as part of account governance. Limit group membership to the minimum needed for each role or service. Baseline and monitor local group configuration for unauthorized changes.
NIST CSF 2.0PR.AA-05 — Identity Management, Authentication, and Access ControlGroup membership is part of how systems enforce access control decisions.
Recommendation — Enforce access control through governed group membership and periodic review.
CIS Controls v8CIS-5 — Account ManagementGroup entries materially affect who can access local resources on a host.
Recommendation — Maintain approved group membership and remove unneeded access promptly.

Practitioner Guidance

Why practitioners should care: /etc/group is small, but it is a high-value control surface because many Unix-like authorization decisions depend on it. Review it as part of access governance, not just host hardening.

What to watch for: Unexpected membership additions, duplicate or reused GIDs, inconsistent group definitions across hosts, and changes that do not match approved access requests are all signs that the effective permissions model may have drifted.

Practitioner takeaway: Treat group files as security-relevant configuration, and validate the effective access they produce, not only the text you see in the file.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on October 29, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org