1. Users and Groups — Concepts

Why Users and Groups Exist


User Types

Type UID Range Description
Root (Superuser) 0 Full control over everything on the system
System Users 1 – 999 Created automatically for services (e.g., Apache, SSH). Cannot log in
Regular Users 1000+ Normal human users

Why system users exist:


User Properties

Each user has:

Property Description
Username Human-readable login name
UID Unique ID number — the system uses this, not the name
GID Primary group ID
Comment (GECOS) Full name or description
Home directory Default location when the user logs in
Default shell Shell opened at login (e.g., /bin/bash)

Group Types

Type Description
Primary group Created automatically with the user, same name as the user. One per user
Secondary groups Optional additional groups. A user can be in many