write permission for www-data

etrader nginx-forum at nginx.us
Wed Jul 27 13:50:43 UTC 2011


Thanks folks. Let me conclude that it is better to keep the owner of my
folders to be "root". Then give permission to www-data (nginx user) for
every writable folder like upload and images? right?

My main question is about the folder ownership; which is better? root or
www-data? 
Because when I normally create folder by SSH or SSH tunnel to server, I
am there as root and create folder with root ownership.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213004,213010#msg-213010



More information about the nginx mailing list