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. :)

Related posts:

  1. BASH Prompt Fun ...
  2. KDE: Right Click, Extract Here I’ve been hunting for a post on how to have...
  3. Host Your Own Domain and Webserver Doesn’t sound like anything new right?  Well, some people may...
  4. Host your own webserver for free A while back, I wrote a tutorial for people who...

Tell Others About This!
    Digg Sphinn del.icio.us Facebook Mixx Google Reddit SphereIt StumbleUpon Technorati Yahoo! Buzz blogmarks Blogsvine MisterWong TwitThis Ma.gnolia NewsVine E-mail this story to a friend! Ping.fm

Tags: , , , , ,

This entry was posted on Tuesday, November 25th, 2008 at 5:01 pm and is filed under Tips. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.