Users, Root, and Sudo
Concepts
Users on Linux
Every Linux system has multiple user accounts, even if you are the only person using it. Each user has:
| Attribute | Description | Example |
|---|---|---|
| Username | Human-readable login name | kmiguel |
| UID | Numeric user ID (the kernel uses this, not the username) | 1000 |
| GID | Primary group ID | 1000 |
| Home directory | Personal directory | /home/kmiguel |
| Login shell | Shell started at login | /bin/bash |
| Password | Stored as a hash (not plaintext) | (in /etc/shadow) |
User categories: