70/91
Sign inSign up free

734. Runtime Folders Created at Boot

medium 20 XP ~7 minHands-on lab

After every reboot, reportd fails to start: it expects /run/reportd to exist, but /run is a tmpfs and starts empty. Its cache in /var/cache/reportd also grows forever.

Task

Create /etc/tmpfiles.d/reportd.conf so that systemd-tmpfiles:

  • creates the directory /run/reportd at boot, mode 0750, owner reportd, group reportd,
  • creates /var/cache/reportd (mode 0750, owner and group reportd) if it's missing, and deletes files in it that haven't been used for 7d.

(systemd isn't running 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.

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.