Running nginx as another user
Starting nginx: [emerg]: bind() to 0.0.0.0:80 failed (13: Permission denied)
Seems www-data doesn't have permissions to listen on port 80. How can I fix this?
2 Replies
The correct way to get a daemon to run as a regular user, then, is to use the configuration system provided by that daemon.
In nginx's case, there appears to be a "user" parameter at the start of its configuration file.