write permission for www-data

António P. P. Almeida appa at perusio.net
Fri Jul 29 19:35:12 UTC 2011


On 29 Jul 2011 20h29 WEST, nginx-forum at nginx.us wrote:


> Yes, I run nginx as www-data; I just meant creating files and
> folders by root. My own PC run on Ubuntu; thus I connect to server
> through OS explorer. I connect to server via sftp with root
> user. Then, when I create a folder or php file its ownership belongs
> to root. I just asked if it is necessary to create each and every
> file and folder by nginx or site user? or it is OK to be owned by
> root?

No. It is not OK to be owned by root. Read my previous reply in the
thread.

--- appa



More information about the nginx mailing list