Last active
December 9, 2023 20:36
-
-
Save garraflavatra/681755d041027a1280c1a0a246871729 to your computer and use it in GitHub Desktop.
Find all 777 directories on Linux systems
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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