What Is /etc/group

Content on WhatAnswers is provided "as is" for informational purposes. While we strive for accuracy, we make no guarantees. Content is AI-assisted and should not be used as professional advice.

Last updated: April 11, 2026

Quick Answer: The /etc/group file is a text file in Unix and Linux systems that defines user groups and their members, containing one line per group with the format: groupname:password:GID:member_list. Each group has a unique numeric identifier (GID) ranging from 0-65535, and the file is essential for managing user access permissions and group-based security across the system. Since its implementation in Bell Labs Unix in 1971, it has remained a fundamental component of Unix-like operating systems.

Key Facts

Overview

The /etc/group file is a text-based database that maintains information about every user group on a Unix or Linux system. It serves as a fundamental component of the operating system's user and group management infrastructure, alongside related files like /etc/passwd and /etc/gshadow. Every process running on a system references this file to determine group membership and access permissions.

Originally implemented in Bell Labs Unix in 1971, the /etc/group file follows a standardized format that has remained largely unchanged across different Unix-like operating systems including Linux, BSD, macOS, and Solaris. The file is readable by all users on the system, making group information universally accessible for permission checking and user identification purposes. System administrators use this file to organize users into logical groups for simplified access control and resource management.

How It Works

The /etc/group file operates as a simple flat-text database with a well-defined structure. Each line represents a single group, with fields separated by colons. The system reads this file sequentially to resolve group names to numeric GIDs and to determine group membership for access control decisions.

Key Comparisons

Aspect/etc/group/etc/passwd/etc/gshadow
Primary PurposeDefines groups and membersDefines user accountsStores group passwords securely
Readable ByAll usersAll usersRoot only
ID RangeGID (0-65535)UID (0-65535)Same as /etc/group
Password StoragePlaceholder onlyPlaceholder onlyEncrypted passwords
Primary UsageGroup membership and accessUser authenticationGroup authentication

Why It Matters

The /etc/group file remains critical for modern Linux system administration despite advances in authentication systems. Understanding its structure is essential for system administrators managing permissions, troubleshooting access issues, and implementing security policies. Many containerized and cloud environments continue to use /etc/group conventions, making it relevant even in contemporary infrastructure scenarios.

Sources

  1. Linux man-pages: group(5)GPL-2.0
  2. Wikipedia: Unix groupCC-BY-SA-4.0
  3. Linux Kernel DocumentationGPL-2.0

Missing an answer?

Suggest a question and we'll generate an answer for it.