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























