Find world writable directories

I recently found myself needing to locate all world writable files in a directory tree and came across the following useful command:

find /var/ -type d -perm -o+w -exec ls -ld {} \;

The syntax may vary depending on the flavour of Unix/Linux you’re using, but this worked on Ubuntu for me.

 

Leave a Reply