multiple_choice
medium
Apply
enum-misconfig
2 points
Question 13. CSCD240-E1-C
Find every regular file under /var that is world-writable?
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
B: find /var -type f -perm -0002
Misconception bank
Each row below is a plausible wrong answer, the thinking that produces it, and the remedy that corrects the misconception. These are the foundation of the multiple-choice framing and the targeted feedback a student receives after answering.
A: find /var -perm 777
Misconception. -perm 777 requires exact mode; misses files with additional bits.
Remedy. -perm -NNNN = at least these bits.
C: find /var -perm +w
Misconception. +w is not valid find syntax.
Remedy. Use -0002 for world-write at least.
D: ls -l /var | grep w
Misconception. grep w matches any w, including owner/group write.
Remedy. Use find -perm for precise matching.
Authority mappings
Hover any chip for the mapping justification; click to open the authority record.
DCWF roles:
CE-121 Exploitation Analyst
DCWF tasks:
T0250
KU outcomes:
CO-M10-O1
Course-artifact links
Lectures
- CSCD240-S26-L08. Pipes, filters, grep, sort, uniq, wc, tar