✅ Update progress: Ex3 complete, permissions cheat sheet added
This commit is contained in:
@@ -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
|
## ✅ Phase 1 Complete Checklist
|
||||||
- [ ] Exercise 1: `whoami`, `uname -a`, file creation
|
- [x] Exercise 1: `whoami`, `uname -a`, file creation
|
||||||
- [ ] Exercise 2: Directory structure, `cp`, `mv`, `cat`
|
- [x] Exercise 2: Directory structure, `cp`, `mv`, `cat`
|
||||||
- [ ] Exercise 3: `chmod`, permissions understanding
|
- [x] Exercise 3: `chmod`, permissions understanding
|
||||||
- [ ] Exercise 4: Text editors (nano + vi)
|
- ⏭️ Exercise 4: Skipped (already know text editors)
|
||||||
|
|
||||||
**Next:** [[Phase 2 - Networking]] 🌐
|
**Next:** [[Phase 2 - Networking]] 🌐
|
||||||
|
|||||||
@@ -121,8 +121,8 @@ ip route
|
|||||||
## ✅ Phase 2 Checklist
|
## ✅ Phase 2 Checklist
|
||||||
|
|
||||||
- [ ] Ping and ARP (`ip neigh`)
|
- [ ] Ping and ARP (`ip neigh`)
|
||||||
- [ ] SSH key generation and passwordless login
|
- [x] SSH key generation and passwordless login
|
||||||
- [ ] File transfer with `scp` / `rsync`
|
- [x] File transfer with `scp` / `rsync` (need `apk add rsync` on Alpine!)
|
||||||
- [ ] Running a network service
|
- [ ] Running a network service
|
||||||
|
|
||||||
**Previous:** [[Phase 1 - Walking]] | **Next:** [[Phase 3 - Users and Files]]
|
**Previous:** [[Phase 1 - Walking]] | **Next:** [[Phase 3 - Users and Files]]
|
||||||
|
|||||||
Reference in New Issue
Block a user