Lion Cipher Lab

Manage Linux services with systemd

Why it matters

On almost every modern Linux system, the background programs that do the work — the SSH server you log in through, a firewall's helper, a web server, fail2ban — run as services managed by systemd. If you cannot start, stop, enable, and inspect a service, you cannot really administer or defend a Linux box, and a surprising number of security labs assume you already can. There is a defensive payoff too: every service left running and set to start at boot is part of your attack surface. Learning to list what is on, and switch off what you do not need, is one of the cheapest, most durable…

What you'll learn

Steps in this lab

  1. What systemd is, and what a service means
  2. Check a service's status
  3. Start, stop, and restart a service
  4. Enable or disable a service at boot
  5. List what is actually running
  6. Read a service's logs with journalctl
  7. Attack-surface awareness: turn off what you do not need
  8. Why this small skill carries so far

Open the full interactive lab →