Proper User Directive
bee.lists at gmail.com
Thu Aug 23 00:32:01 UTC 2018
Hi there. My question is about using a proper user.
This directive was initially blank, then Passenger (nginx on FreeBSD) threw an error:
env: bash: No such file or directory
uid=65534(nobody) gid=65534(nobody) groups=65534(nobody)
So the lack of a user closed up the $PATH to bash for some reason. I tried www and my own username, resulting in the same errors.
The example on nginx.com states "www www” as the user, but that gives me the same error.
I checked the documentation and it is not even two lines long:
So I’m without a user and/or group to run nginx. Is there something I’m missing? Everywhere I look, people are confused about the user/group to run nginx as. “root” doesn’t work, and I’ve been told not to run it as root.
How can I get this to work?
More information about the nginx