Find Files & Directories Not Visible to Others for Webserver

I wanted a quick way to be able to find out what files weren’t visible to others (and therefore, not visible to website visitors).  Messing with arguments and the file command, you can do the following:

find -type f ! -perm -444

This locates all files not visible to ‘others’ in the current directory.  You can apply this to directories as well:

find -type d ! -perm -111

Hope this helps people like it helped me. :)

This content is published under the Attribution-Noncommercial-Share Alike 3.0 Unported license.

  • http://www.thegeekstuff.com/2009/03/15-practical-linux-find-command-examples/ sathiya

    simple, but pretty useful helpful while needed.

    we do have a learning exercise here @ http://www.thegeekstuff.com -> Mommy, I found it! — 15 Practical Linux Find Command Examples