# Users and Groups

Every person and many programs on a Linux computer have a user account with a number and a list of groups: whoami, id and groups show yours, /etc/passwd lists every account, adduser and usermod -aG add a person and a group, and a server runs each program as a user of its own.

![Cheat sheet for the lesson Users and Groups: Every person and many programs on a Linux computer have a user account with a number and a list of groups: whoami, id and groups show yours, /etc/passwd lists every account, adduser and usermod -aG add a person and a group, and a server runs each…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/3a44e6b5580a4da6bd3a0b6fca34f8e5.webp)

- Category: Bash
- Level: Journeyman
- Tags: linux, principle-of-least-privilege, system-user, unix, useradd, user-and-group, user-id
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/bash-users-and-groups-cheat-sheet
