You mastered chmod and file permissions.
Linux is multi-user by design. Permissions decide who can read, write, or run each file, so one user's files stay private from everyone else unless they choose to share them.
ls -l shows a 10-character string like -rwxr-xr--. It breaks into four parts:
| Position | Meaning |
|---|---|
| 1st char | - = file, d = directory, l = symlink |
| Next 3 | Owner's read/write/execute |
| Next 3 | Group's read/write/execute |
| Last 3 | Everyone else's read/write/execute |
r = read, w = write, x = execute (run a program, or enter a directory). A - means that permission is missing.
Each permission has a value: read = 4, write = 2, execute = 1. Add them up per group to get one digit:
So rwxr-xr-- becomes 754 — one digit each for owner, group, other.
Symbolic mode uses u (user/owner), g (group), o (other), a (all), with +/- to add or remove a permission.
777, lets anyone read, write or run it — avoid that on real systems.ls -l and read the permission string on flag.txt and deploy.sh.cat flag.txt. It should be denied — note which permission is missing.chmod (numeric or symbolic) to give the owner read permission, then cat it again.deploy.sh so ./deploy.sh runs instead of being denied. Submit the flag you uncover.r shown as - means the owner cannot read it.600. Read = 4, write = 2, so 4+2 = 6 for the owner's digit.chmod u+r file adds read for the owner without touching anything else.chmod +x deploy.sh, then run it with ./deploy.sh.| Number | Meaning |
|---|---|
| 700 | Owner: full control. No one else, anything. |
| 600 | Owner: read/write only. Common for private files. |
| 644 | Owner: read/write. Everyone else: read only. |
| 755 | Owner: full. Everyone else: read + execute. Common for scripts. |
| 777 | Everyone: full control. Avoid this. |