Sign inSign up free

730. World-Writable Files Where They Don't Belong

medium 20 XP ~7 minHands-on lab

A hardening scan of /srv/lab/quartz reports world-writable files and directories. Any user on the server could change the code or swap files in those folders.

Task

  • Write the full paths of every world-writable file and directory under /srv/lab/quartz to /home/student/world-writable.txt, sorted, before you change anything.
  • Remove write permission for others from all of them. Leave every other permission bit as it is.
  • Exception: /srv/lab/quartz/uploads must stay writable by everyone, but users must not be able to delete each other's files in it.

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. Next step: New Files the Whole Team Can Edit

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.