Welcome! Log In Create A New Profile

Advanced

Re: write permission for www-data

July 27, 2011 10:20AM
On 7/27/11 9:50 AM, etrader wrote:
> 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.

This is really off the topic of this list. However the answer to your
question is it's a matter of choice.

You can create the directory as root and change the ownership with
"chown", you can create the directory using "sudo -u www-data mkdir" or
you can leave the ownership as root and use "chmod".


>
> Posted at Nginx Forum: http://forum.nginx.org/read.php?2,213004,213010#msg-213010
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx


--
Jim Ohlstein

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

write permission for www-data

etrader July 27, 2011 09:27AM

Re: write permission for www-data

douglas July 27, 2011 09:32AM

Re: write permission for www-data

Adam Tucker July 27, 2011 09:32AM

Re: write permission for www-data

Jim Ohlstein July 27, 2011 09:46AM

Re: write permission for www-data

etrader July 27, 2011 09:50AM

Re: write permission for www-data

António P. P. Almeida July 27, 2011 10:16AM

Re: write permission for www-data

Jim Ohlstein July 27, 2011 10:24AM

Re: write permission for www-data

Jim Ohlstein July 27, 2011 10:20AM

Re: write permission for www-data

etrader July 29, 2011 03:29PM

Re: write permission for www-data

António P. P. Almeida July 29, 2011 03:46PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 131
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready