Skip to content

Instantly share code, notes, and snippets.

@garraflavatra
Last active December 9, 2023 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garraflavatra/681755d041027a1280c1a0a246871729 to your computer and use it in GitHub Desktop.
Save garraflavatra/681755d041027a1280c1a0a246871729 to your computer and use it in GitHub Desktop.
Find all 777 directories on Linux systems
# Find all 777 files:
sudo find / -type d -perm 777
# Find all world-writable files:
sudo find / -xdev -type d \( -perm -0002 -a ! -perm -1000 \) -print
# Find all files without owner:
sudo find / -xdev \( -nouser -o -nogroup \) -print
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment