...

View Full Version : Upload Permissions



ole90
07-26-2008, 08:07 PM
Hey guys,

I have folders which i allow my users to upload images to. The only problem is, it's making me have to have the folder chmod'ed to 777. otherwise it returns an error saying permission denied.

I don't want the folder to be 777 because then users can see all the files :X

Anyway around this?

Fou-Lu
07-26-2008, 08:10 PM
Chown the folder to Apache (or whatever the user is that runs through httpd), and grant privilege of 660. Otherwise, move the directory above you're published directory - local users could still access the folder, but standard web-based access will be denied.

scoop_987
07-26-2008, 08:20 PM
or htaccess protect it, OR setup an index.html to redirect to the above directory



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum