Linux Users and Groups
Create service accounts and grant precise group access.
- linux user
- adduser
- usermod group
- sudo user
- service account
Linux Users and Groups
Create service accounts and grant precise group access.
Commands
| Command | What it does |
|---|---|
whoami and id | Current user and groups |
sudo adduser deploy | Interactive new user |
usermod -aG group user | Append a group, keep existing |
groups user | Verify membership |
chsh change shell | Change login shell |
Example
sudo adduser --disabled-password --gecos '' app
sudo usermod -aG docker app
FAQ
Why the -a flag with -G?
Without append, -G replaces all groups and can lock the user out of sudo - always append.
System user vs login user?
System flags create nologin service accounts for daemons.
자주 묻는 질문
Why the -a flag with -G?
Without append, -G replaces all groups and can lock the user out of sudo - always append.
System user vs login user?
System flags create nologin service accounts for daemons.
Linux
Linux Files and Directories
Navigate, create, move, and inspect files with core commands.
Linux Permissions
Read ls output, chmod, chown, and sudo without breaking access.
Linux Text Processing
cat, head, cut, sort, uniq, and awk for daily data shaping.
Linux grep and find
Find files by name, age, and size; search inside them fast.