Sign inSign up free

731. Mount Options for Temporary Space

medium 20 XP ~7 minHands-on lab

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 pointRequirement
/tmpa tmpfs of size 1G, with nodev, nosuid and noexec
/dev/shmtmpfs with nodev, nosuid and noexec
/var/tmpa bind mount of /tmp, so it shares those options

Task

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

TerminalNot started

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.