Find world writable directories

On May 12, 2009, in Linux, Tech Notes, by Brad

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

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>