Mount Options for Temporary Space
Attackers love world-writable temporary folders: they drop a binary there and run it. The hardening benchmark asks for these mounts, applied from /etc/fstab at boot:
| Mount point | Requirement |
|---|---|
/tmp | a tmpfs of size 1G, with nodev, nosuid and noexec |
/dev/shm | tmpfs with nodev, nosuid and noexec |
/var/tmp | a bind mount of /tmp, so it shares those options |
Edit /etc/fstab so it has exactly one entry for each of the three mount points, as above. Keep the existing entries for /, /boot and swap exactly as they are. (Nothing is mounted in this sandbox: the file is what gets checked.)
About this machine
Ubuntu 24.04 with no internet access. You are student with passwordless sudo. The grader checks the final state of the machine, not the commands you typed. Values like names and ports are generated for you.
Part of Prepare for the LFCS
Teaching or writing about this? Embed this lab on your page
Your machine is ready to start
A fresh, isolated Ubuntu machine boots in a few seconds with the task already set up.
No account needed: 3 of 3 free tries left. Guest machines last 30 minutes.