Why won't these permissions do what I wish?

Posted by Chris B. on Server Fault See other posts from Server Fault or by Chris B.
Published on 2009-09-13T13:49:49Z Indexed on 2010/03/25 2:03 UTC
Read the original article Hit count: 509

Filed under:
|

I am trying to make my folder owned by "apache" and then chmod that folder so that only the owner and group can access it. I am trying to do this to keep visitors from executing user-uploaded files directly. Here are the commands I am using:

chown -R apache uploads
chmod -R 770 uploads

Source: http://www.mysql-apache-php.com/fileupload-security.htm

Instead it seems that although it is keeping visitors from seeing the files, it is not allowing apache to serve them. Do you have any ideas?

© Server Fault or respective owner

Related posts about apache

Related posts about permissions