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/null

Usage Notes

  • -perm -0002 finds files writable by others
  • -perm -0020 finds files writable by group
  • 2>/dev/null suppresses permission denied errors
  • Add -type d to 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