*nix file permissions

Howell

Storage? I am Storage!
Joined
Feb 24, 2003
Messages
4,740
Location
Chattanooga, TN
What is the *nix file permission "number" combination to allow people to look at the contents of a folder without an index.htm?

The folder is set for 755 right now and I;m getting "no permission" messages.
Thanks.
 

Handruin

Administrator
Joined
Jan 13, 2002
Messages
13,931
Location
USA
http://www.webweaver.nu/html-tips/chmod.shtml

755 should be fine for viewing the contents, but the directory may need to be owned by the user "nobody" so that apache can serve the data (assuming you're trying to share the contents over the web with apache).

What user (or group) owns the directory?
 

Howell

Storage? I am Storage!
Joined
Feb 24, 2003
Messages
4,740
Location
Chattanooga, TN
I can get to files in the directory fine. But I want to be able to see the contents and choose a file without having to know the xact name of the files in there. I tried changing the permissions to 777 but that did not help.

A user ID is associated with the UID and GID.
 

Handruin

Administrator
Joined
Jan 13, 2002
Messages
13,931
Location
USA
I need a little more info. Are you trying to view this with apache through a web browser?

If so, then you may need to enable directory listing within apache.

Code:
# IndexOptions: Controls the appearance of server-generated directory
# listings.
#
IndexOptions FancyIndexing VersionSort

You may also need to check for any .htaccess files which could be restricting the directory listing.

Code:
IndexIgnore *

Change to:
Options +Indexes
 
Top