Main Content

Finding public writeable things on your linux file system

Archive - Originally posted on "The Horse's Mouth" - 2007-01-06 04:44:25 - Graham Ellis

Wondering what files and directories on your (Unix, Linux, OS X) system are marked "public writeable"?

There should be very few indeed (none is good), but the following will wheedle them out.

find . -perm -2 -print

""Find, under the current directory ('.') all symbols with permission bit "2" set, regardless of other permission bits on that symbol, and print out the path to that symbol""