Welcome! Log In Create A New Profile

Advanced

User directive warning, despite being run as root

April 21, 2011 02:30PM
I'm running nginx 1.0.0 on a MacOS X machine, installed with brew, and when I launch nginx, even with sudo, I get the following warning in my log file over and over again:

4/21/11 2:03:42 AM org.nginx[3788] nginx: [warn] the "user" directive
makes sense only if the master process runs with super-user privileges,
ignored in /usr/local/etc/nginx/conf/nginx.conf:2

From nginx.conf:

user jschuur staff;

I'm already launching nginx with sudo, since I want the thing to listen on port 80. Shouldn't that be enough to give it the proper super user privileges?

Running 'sudo id' confirms the effective UID is 0 and from nginx.c in the source, it does a 'if (geteuid() != 0)' before the error message in question.

The nginx binary as it's installed:

drwxr-xr-x 3 jschuur staff 102 Apr 12 20:53 .
drwxrwxr-x 15 jschuur staff 510 Apr 12 15:25 ..
-rwxr-xr-x 1 jschuur staff 2325648 Apr 12 20:39 nginx

FWIW, I recompiled the binary to set passenger up and moved it around from it's original location into /usr/local/sbin.
Subject Author Posted

User directive warning, despite being run as root

jschuur April 21, 2011 02:30PM

Re: User directive warning, despite being run as root

jschuur April 21, 2011 03:05PM

Re: User directive warning, despite being run as root

jschuur April 21, 2011 04:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 153
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready