Hacker News new | ask | show | jobs
by TarqDirtyToMe 3380 days ago
In theory, to make the temp/cache directories more secure I imagine
1 comments

This would make sense if it created those directories, but IMHO it should fail to start if the path exists and isn't owned by www process. The function that does chown() is even called ngx_create_paths().
I agreed, would at least consider it a bug if not a security issue.
Definitely bad behavior. Ideally, no one but privileged users should be able to edit the configuration imho but this opens the door for attackers.
Completely agree. Time for a PR?