Linux & OS Internals
Ownership: chown, chgrp and why a directory needs the x bit
Permissions say what each class may do. Ownership decides which class you are. Directories add a twist: the x bit means enter, and without it the file inside is unreachable.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Linux & OS Internals
- Users, groups and /etc/passwdBeginner · 5 min
The kernel does not know the word alice. It knows the number 1000. Seeing how names map to numbers explains who owns what, and why a new group takes effect only at your…
- Permissions: read, write, execute and chmodBeginner · 5 min
Ten characters at the start of ls -l decide who can read, change or run a file. Read them once properly and most Permission denied tickets answer themselves.
- Root, sudo and least privilegeBeginner · 5 min
Root has broad privileges, including the ability to delete important files. sudo lets you borrow that power one command at a time, and teaches the habit that later…
- Processes: PID, ps and topBeginner · 5 min
Every incident starts with two questions: what is running, and who started it. Learn to answer both in under a minute, and what the columns mean.
- fork, exec and process statesBeginner · 5 min
Every command you type starts with a copy of your shell, then a swap of the program inside it. That explains parents, children, exit codes and why cd is built in.
- Kernel space, user space and system callsBeginner · 5 min
A program cannot write to a disk or open a network connection by itself. See the one door every program uses to ask the kernel, and how to watch it open.