Thread: [chmod] Help!
View Single Post
Old 10-08-2005, 07:54 AM  
LBBV
Confirmed User
 
LBBV's Avatar
 
Join Date: Aug 2002
Location: Atlanta
Posts: 936
First of all, the reason you couldn't see your files when you did a "chmod 666" is that directories have to be executable or you will not be able to enter or access any files in them.

If I understand what you're requesting, you want the directory to be accessible to the web, but you want it so that you have to know the name of the file in order to read it. If that's the case, do this.

1. Set your directory to 755 (if you haven't already fixed that problem)

2. put a blank index.html in the directory (NOT Index.html...keep it all lower case)

3. As an added measure, as recommended above, upload (IN ASCII MODE) a .htaccess file in the directory (that's DOT htaccess) and in that file, put the following lines in it (use a text editor like notepad to create this file. Do NOT use Word or something similar)

Options -Indexes
DirectoryIndex index.html index.htm

Now, no one can view the files in that directory unless they know exactly what the file name is.

-- Bill
__________________
National Net Hosting. Handled.
See our new line of inexpensive Dedicated Servers | Cabinets starting at $795 | CDN
[email protected] | 888-4-NATNET | www.nationalnet.com
LBBV is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote