← All paths

Linux host administration

Users and permissions, least-privilege sudo, defusing a SUID bug, log rotation, and service hardening.

8 challenges · ~3 h · every step earns its own verified proof

  1. Accounts and group membership, the first thing to get right on a new host.

  2. Owner, group, and mode on a secrets file. The daily bread of Linux.

  3. A team folder that works, using setgid so new files inherit the group.

  4. Grant exactly one command through sudo, not full root.

  5. A world-writable SUID binary is a root shell. Defuse it without breaking the tool.

  6. Unbounded logs fill the disk. Rotate, compress, and cap them.

  7. Run a daemon as a service account inside systemd's sandbox.

  8. Turn off the routing and redirects a plain host should never do.