Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a MediaWiki installation running under Apache. I've found a problem with file access and after some research, I've found the problem is file system permissions.

If my uploads directory has the permission 755 everything works ok, but if I change the permissions to 744, then I'm unable to access to this file folder (Forbidden).

What's happening?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

The short answer is that you have to have execute permission or higher (5) on a directory to list the contents of that directory. You can access files in a directory if you have read permission (4) but you have to know the name of the file because you can't list the contents of the directory.

So, the user you are using to access the directory is not the user who owns the directory (because then the '7' permission would apply. Thus to fix this either use mode 755 on the directory, or make it so that the same user owns the directory and accesses it. Or of course, always know the exact filename you are trying to access in the directory, then the 4 permission is sufficient.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.