What you will build
Step 1: List world-writable files
The directory /workspace/proj holds files with several modes. Some are world-writable.
Create /workspace/audit.sh. Given a directory argument, it prints the world-writable regular files under that directory, one per line, sorted.
Step 2: Add a fix mode that prints chmod lines
Rewrite /workspace/audit.sh so that bash audit.sh --fix DIR prints one chmod o-w PATH line for each world-writable file, and prints nothing else.
The plain form without --fix must still print the paths. The modes of the files must not change.
Files
walkthrough.sh: every step of the reference solution, in order.
How it is checked
Each step in the guided lab has a check script that runs on the lab machine after you finish. It passes only when the files and output it expects are there, so the lab cannot be completed by reading alone.