bruce@saba Posted September 30, 2007 Posted September 30, 2007 I have a password protected directory which has a PHP page to upload files. When it is executed, I get a message saying "Permission denied" in the PHP page and that it was unable to move the temporary file to the actual file name. Do the permissions on the directory have to be set to 777? Is the password protection enough security? Quote
TCH-Andy Posted September 30, 2007 Posted September 30, 2007 You will need to have write permissions on the folder for php - so yes, if you are the owner of the folder, you will need 777 permissions to write the file there. If you are writing via the script, it will generally bypass the password protection, but the password protection will provide security from people trying to run something uploaded ( assuming they can't get the login details). Quote
DebC Posted October 1, 2007 Posted October 1, 2007 Andy - I am not sure if this should be a new topic or if I can piggyback onto this question. I am the administrator of my website but the file manager returns a message telling me I cannot change permissions. "operation not permitted". I need to change the permissions so I can run Gallery. DebC You will need to have write permissions on the folder for php - so yes, if you are the owner of the folder, you will need 777 permissions to write the file there. If you are writing via the script, it will generally bypass the password protection, but the password protection will provide security from people trying to run something uploaded ( assuming they can't get the login details). Quote
TCH-Andy Posted October 1, 2007 Posted October 1, 2007 Hi DebC, welcome to the forums If you open a ticket at the help desk ( link at the top of the page ) we'll sort out the permissions and ownership for you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.