# User Group (Linux)

> A named set of Linux users that share the same rights.

**Field:** Infrastructure  
**Category:** Linux & the Command Line  
**Also known as:** Linux Group, Unix Group, groups Command

## Think of it like

Think of it like a club badge. Everyone with the badge may use the club room.

## Definition

A user group is a named set of users on a Linux system. Rights can be given to a whole group at once, not one person at a time. Each file has one owner and one group. A user can be in many groups. On Ubuntu, users in the sudo group may use sudo.

## Example

Lucy adds Jack to the docker group. Now he can run Docker without typing sudo each time.

## Example code

```console
$ sudo usermod -aG docker jack
$ groups jack
jack : jack docker
```

Jack joins the docker group. The second line lists every group he is in.

## Why it matters

Groups let a team share files and tools without handing anyone the root key.

## Common mistake

Expecting a new group to work at once. The user must log out and back in first.

## Three principles

- **A named set.** Many users, one name.
- **Rights by group.** Give access once, to all.
- **Log in again.** New groups apply at the next login.

## Related terms

- [File Permissions](https://learn.benibix.com/term/infrastructure/file-permissions)
- [sudo](https://learn.benibix.com/term/infrastructure/sudo)
- [chown](https://learn.benibix.com/term/infrastructure/chown)
- [Root User](https://learn.benibix.com/term/infrastructure/root-user)
- [Docker](https://learn.benibix.com/term/infrastructure/docker)

## Taught in

- [Linux File Permissions](https://learn.benibix.com/learn/infrastructure-linux/linux-file-permissions): Linux CLI, 6/10

![The line -rwxr-x--- lucy devs run.sh split into labelled parts. The first three letters rwx belong to the owner lucy and add up to 7. The next three r-x belong to the group devs and add up to 5. The last three dashes belong to everyone else and add up to 0. Under each letter, r is 4, w is 2 and x is 1.](https://learn.benibix.com/diagrams/inf3-permissions.svg)

---

Source: https://learn.benibix.com/term/infrastructure/user-group
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
