Training · Linux fundamentals
The analogy. A city with one rule: everything is an address. Files, disks and even running processes have a path, which is why the same three tools can inspect all of them.
The shell is the classroom: the lecture behind this lab covers the mental model, the commands you are about to use, and the four things that usually go wrong.
Read the lecture before you startall labs
Permissions II: Recursive & Ownership
Advanced22 min0/3 activities
Lock down a website tree: tighten every directory, hand ownership to root, then open one public file.
Activities
01Set every directory under /opt/site to mode 750
/opt/site and all of its subdirectories must be rwxr-x---.
02Make root own the whole /opt/site tree
Every entry must have owner and group root.
03Open /opt/site/public/index.html to exactly 644
That one file must be rw-r--r--.
student@ophir-lab — linux-perms-02
Booting sandbox…
bash 5.2 · x86_64 (wasm)isolated · no network egress