nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)

Lukas l at ymx.ch
Wed Feb 3 23:14:55 UTC 2016


> smsmaddy1981 <nginx-forum at forum.nginx.org> [2016-02-04 00:03]:
>
> Requirement is to start NGinx other than root user
>
> 1) Added entry tp /etc/sudoers for specific user as below:
> gvp    ALL=(ALL) NOPASSWD: ALL
>
> 2) Tried starting NGinx as gvp user, below error thrown:
> nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
>

As user gvp, do you run

    sudo /etc/init.d/nginx start

or

         /etc/init.d/nginx start

?

The former works, at least for me.

-- 
Lukas Ruf       <http://www.lpr.ch> | Ad Personam
Consecom  <http://www.consecom.com> | Ad Laborem



More information about the nginx mailing list