Linux: administration practice (lectures 6-9)¶
Who it is for: you have finished the "first working week" and need to complete 30 tasks on editors, permissions, users, processes, systemd, networking and backup. How to use it: type the commands yourself. Each task has the command, the why and how we checked it.
| Mark | Meaning |
|---|---|
| 🔴 | Know it by heart |
| 💡 | Why we do it |
| ✅ | How we checked |
| ⚠️ | A mistake we actually made |
Outputs come from our training lab (your PIDs, UIDs and times will differ). Replace
<user>with your user name.
The picture on one page¶
flowchart LR
A["Block A<br>files and editors<br>1-6"] --> B["Block B<br>permissions and users<br>7-16"]
B --> C["Block C<br>processes and systemd<br>17-25"]
C --> D["Block D<br>network and backup<br>26-30"]
Before you start¶
- 🔴 This assignment needs
sudo. Take a VirtualBox snapshot first. - Use only new training users and a training service. Do not touch existing ones.
- Type passwords only in the terminal.
Pre-check (changes nothing):
whoami; hostname; sudo -v && echo "sudo OK"
ls -ld /srv/linux-practice; getent passwd labuser1 labuser2 labguest; getent group labteam; systemctl cat linux-practice.service
✅ The folder, users, group and service must not exist yet.