Update progress: Ex3 complete, permissions cheat sheet added

This commit is contained in:
mrsh
2026-05-22 03:29:35 +02:00
parent eb95dc7022
commit 0025bc5586
2 changed files with 21 additions and 6 deletions

View File

@@ -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]] 🌐

View File

@@ -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]]