Folder rights to put image into
Posted: Tue Jul 29, 2008 7:26 pm
Hi,
I'm working on a php script which will run on an web host. The script will have to accepts new images... The image will be resized and the being putted in the normal directory... ie : ~/images/
What I'm currently wondering about is : My user is not necessary in the same group than the webserver. So, the webserver won't be able to save the image in the folder I want unless I chmod 757 the directory where I want to put the image inside.
So, I think it's not a very good idea to give full access to other. Is there any better way to achieve a good security and being able to save the image in the right folder keeping a safe chmod (at most 755?)
Thank you for the advice!
Weeb!
I'm working on a php script which will run on an web host. The script will have to accepts new images... The image will be resized and the being putted in the normal directory... ie : ~/images/
What I'm currently wondering about is : My user is not necessary in the same group than the webserver. So, the webserver won't be able to save the image in the folder I want unless I chmod 757 the directory where I want to put the image inside.
So, I think it's not a very good idea to give full access to other. Is there any better way to achieve a good security and being able to save the image in the right folder keeping a safe chmod (at most 755?)
Thank you for the advice!
Weeb!