diff --git a/Midori's Linux Dojo 🌸/Phase 1 - Walking/Exercises.md b/Midori's Linux Dojo 🌸/Phase 1 - Walking/Exercises.md index 27607a6..875f012 100644 --- a/Midori's Linux Dojo 🌸/Phase 1 - Walking/Exercises.md +++ b/Midori's Linux Dojo 🌸/Phase 1 - Walking/Exercises.md @@ -133,10 +133,25 @@ vi /root/lab/notes/vi-practice.txt --- +### 💡 Key Lesson: Root bypasses everything! +- **root** can read/write/execute ANY file regardless of permissions +- Permissions only protect against **non-root users** +- Always use a regular user + `sudo` in production! +- Directories need `+x` to be accessible + +### 🔢 Permission Cheat Sheet +| Mode | Octal | Meaning | +|------|-------|---------| +| `rwx------` | `700` | Only owner can do anything | +| `rwxr-xr-x` | `755` | Owner full, others read+execute | +| `rw-r--r--` | `644` | Readable by all, writable by owner | +| `rw-------` | `600` | Only owner can read/write | +| `rw-rw-rw-` | `666` | Everyone can read/write (dangerous!) | + ## ✅ Phase 1 Complete Checklist -- [ ] Exercise 1: `whoami`, `uname -a`, file creation -- [ ] Exercise 2: Directory structure, `cp`, `mv`, `cat` -- [ ] Exercise 3: `chmod`, permissions understanding -- [ ] Exercise 4: Text editors (nano + vi) +- [x] Exercise 1: `whoami`, `uname -a`, file creation +- [x] Exercise 2: Directory structure, `cp`, `mv`, `cat` +- [x] Exercise 3: `chmod`, permissions understanding +- ⏭️ Exercise 4: Skipped (already know text editors) **Next:** [[Phase 2 - Networking]] 🌐 diff --git a/Midori's Linux Dojo 🌸/Phase 2 - Networking/Exercises.md b/Midori's Linux Dojo 🌸/Phase 2 - Networking/Exercises.md index b62e637..ec38f47 100644 --- a/Midori's Linux Dojo 🌸/Phase 2 - Networking/Exercises.md +++ b/Midori's Linux Dojo 🌸/Phase 2 - Networking/Exercises.md @@ -121,8 +121,8 @@ ip route ## ✅ Phase 2 Checklist - [ ] Ping and ARP (`ip neigh`) -- [ ] SSH key generation and passwordless login -- [ ] File transfer with `scp` / `rsync` +- [x] SSH key generation and passwordless login +- [x] File transfer with `scp` / `rsync` (need `apk add rsync` on Alpine!) - [ ] Running a network service **Previous:** [[Phase 1 - Walking]] | **Next:** [[Phase 3 - Users and Files]]