CommandLinux / Mac
Warden's Gaze
Find World-Writable Files and Directories
Scans the filesystem for files and directories that are world-writable, which can be a security risk. Useful for security audits and hardening systems.
find / -type f \( -perm -0002 -o -perm -0020 \) 2>/dev/nullUsage Notes
- •
-perm -0002finds files writable by others - •
-perm -0020finds files writable by group - •
2>/dev/nullsuppresses permission denied errors - •Add
-type dto find only directories - •Run as root for a complete system scan
Warnings
- Warning:Some world-writable locations (like /tmp) are intentional
- Warning:Scanning from root (/) can take a long time on large filesystems
Related Scroll Ideas
- • Find SUID/SGID binaries
- • Audit file ownership anomalies
- • Check for files with no owner