Sensitive path audit
Find and inspect sensitive configuration paths.
Understand the pattern
Security review starts with knowing where sensitive files live.
find- Search directory trees by criteria rather than relying on one shallow listing.
Quote wildcard patterns so find receives them instead of the shell expanding them first.
stat- Inspect a file or directory metadata record, including ownership, permissions, and size.
Metadata and file contents answer different questions.
Worked example and expected result
$ find /etc -name ssh/etc/ssh /etc/ssh/sshd_config /etc/systemd/system/ssh.service
Exit status: 0. The command completed successfully in the training fixture.
$ stat /etc/ssh/sshd_configPath: /etc/ssh/sshd_config Type: file Mode: -rw------- Owner: root Group: root Size: 69 bytes
Exit status: 0. The command completed successfully in the training fixture.
$ stat /etc/sudoers.d/learnersPath: /etc/sudoers.d/learners Type: file Mode: -r--r----- Owner: root Group: root Size: 86 bytes
Exit status: 0. The command completed successfully in the training fixture.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Test file typesTry an incident drillAnonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.