cannot write to certain directory using CentOS distro
Posted
by
fishcracker
on Server Fault
See other posts from Server Fault
or by fishcracker
Published on 2012-11-18T03:36:18Z
Indexed on
2012/11/18
5:01 UTC
Read the original article
Hit count: 135
I have a script that will generate an image then upload it in a certain directory. The script works fine, however uploading it in the CentOS server, it won't work anymore. By debugging, I have found out that this is a permission denied issue. I am forced to chmod -R 777 certain_directory
to make it work.
I am not convince with this, I can't set the directory ownership to www-data
I'm used to when I am using Debian. Any workaround for this?
© Server Fault or respective owner