Re: Start nginx worker process with same user as master process

2016-09-22 Thread Sushma
Thanks a lot Francis. Apparently nginx was once started as root. So automatically the ownership of the temp folders got changed to nginx user. This explains the sudden permission change even though I had set it explictly. Thanks for your help. Cheers, Sushma Posted at Nginx Forum:

Re: Start nginx worker process with same user as master process

2016-09-21 Thread steve
Hi, On 09/21/2016 05:51 PM, Sushma wrote: Thanks for the details. I have explicitly changed permissions for directories as required. But the problem I am facing here is nginx reload fails due to permission denied for proxy_temp folder. I had explicitly changed permissions for this folder so

Re: Start nginx worker process with same user as master process

2016-09-21 Thread Francis Daly
On Wed, Sep 21, 2016 at 01:51:18AM -0400, Sushma wrote: Hi there, > I have explicitly changed permissions for directories as required. > But the problem I am facing here is nginx reload fails due to permission > denied for proxy_temp folder. > I had explicitly changed permissions for this folder

Re: Start nginx worker process with same user as master process

2016-09-20 Thread Sushma
Thanks for the details. I have explicitly changed permissions for directories as required. But the problem I am facing here is nginx reload fails due to permission denied for proxy_temp folder. I had explicitly changed permissions for this folder so that it could be accesssed by user abc (user

Re: Start nginx worker process with same user as master process

2016-09-20 Thread Francis Daly
On Tue, Sep 20, 2016 at 06:48:41AM -0400, Sushma wrote: Hi there, There are a few different things that I think you may be conflating here. > When nginx is installed (checking with -V option), I see that the user > specified is "nginx" user. By that, I think you mean that the compile-time

Re: Start nginx worker process with same user as master process

2016-09-20 Thread Sushma
Hi Francis, Thanks for your update. When nginx is installed (checking with -V option), I see that the user specified is "nginx" user. However my master and worker process are run as a different user (non root user). In this case I see that many of the directories in nginx are owned by nginx

Re: Start nginx worker process with same user as master process

2016-08-17 Thread Francis Daly
On Wed, Aug 17, 2016 at 12:03:48PM -0400, Sushma wrote: Hi there, > I have setup nginx master process with a user , lets say user1. By that, do you mean "you run nginx as user1", or something else? > In the nginx.conf, user directive is mentioned with nginx. (user nginx;) > I understand that

Start nginx worker process with same user as master process

2016-08-17 Thread Sushma
I have setup nginx master process with a user , lets say user1. In the nginx.conf, user directive is mentioned with nginx. (user nginx;) I understand that worker processes will be spawned by user nginx when I start nginx. Is there a way to start worker processes also as user1 without changing