Start nginx worker process with same user as master process
francis at daoine.org
Wed Sep 21 16:32:06 UTC 2016
On Wed, Sep 21, 2016 at 01:51:18AM -0400, Sushma wrote:
> 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 with which nginx is running).
> However, when buffering happens, I see that the folder permissions are
> changed to be owned by nginx user. Hence my reload fails due to permissions
What I can I do to recreate this issue?
What small configuration file can be used to show this problem?
Copy-paste, do not re-type, because that can introduce changes.
For this proxy_temp folder, what is the "ls -ld" or "ls -ldZ" output
for every component of it?
ls -ldZ /
ls -ldz /usr
ls -ldZ /usr/local
and so forth.
> Is there something I am missing here? Does nginx remember the user with
> which it was installed and is that why these folder permissions are
Have you any other processes running that check or change folder
permissions? Or does a containing folder have a setting which says that
everything new inside it must have certain ownership?
Francis Daly francis at daoine.org
More information about the nginx