2 Linux and networking
Linux separates user identity from file ownership and process privileges. root can administer the system. A service should normally run under a dedicated account with only the directories and network capabilities it needs.
- Users permissions and processes
- Remote access without locking yourself out
- Addresses ports and routing
- Follow one HTTPS request
- HTTP you must understand
- Diagnose in layers
- Firewall exercise
- Exit exercise
Outcome: operate a Linux service and trace a request through DNS, TCP, TLS, and HTTP. Prerequisites: Chapter 1. Environment: a disposable Ubuntu VM, with console access available before changing SSH or firewall rules. Commands here are recipes for that VM; the handbook build does not modify your computer's network configuration. Linux separates user identity from file ownership and process privileges. root can administer the system. A service should normally run under a dedicated account with only the directories and network capabilities it needs. Mode 600 gives the owner read/write access; 640 adds group read; directory execute permission allows traversal. Permissions on parent directories also matter. free is a Linux command. df -h reports storage capacity; df -i reports inode availability. A disk can have free bytes and still be unable to create files because inodes are exhausted.