16/91
Sign inSign up free

727. Ship a Config Change as a Patch

medium 20 XP ~8 minHands-on lab

You tuned reportd on the test machine: the original config is /srv/lab/reportd/test/reportd.conf.orig and your edited version is /srv/lab/reportd/test/reportd.conf. The same change must now go to the staging and production copies in /srv/lab/reportd/staging/ and /srv/lab/reportd/prod/. Production has a few local settings of its own that must survive.

Task

  • Save your change as a unified diff in /srv/lab/reportd/tuning.patch.
  • Apply it to staging/reportd.conf and prod/reportd.conf.
  • Every other line of those two files stays as it is. Leave no .orig or .rej files behind in staging/ or prod/.

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.