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

smsmaddy1981 nginx-forum at forum.nginx.org
Wed Feb 3 23:03:21 UTC 2016


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)

3) Some blog says:
https://www.ruby-forum.com/topic/201522 
you have to start it as root, users don't have privs to open ports below
1024

What is the solution here pls.?

Best regards,
Maddy

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,264319,264319#msg-264319



More information about the nginx mailing list