getgrnam("root") failed

Igor Sysoev is at
Tue Apr 21 11:12:26 MSD 2009

On Tue, Apr 21, 2009 at 07:38:36AM +0200, John Mccarthy wrote:

> AMP Admin wrote:
> > Prolly shouldn't run this as root.
> > 
> > My guess would be to change user root root; to user nginx nginx; and see 
> > what happens.
> Thanks for the response.  It seems the problem was that on my Mac there 
> was no group 'root', so I put 'wheel' and nginx starts up.
> > Prolly shouldn't run this as root.
> Yeah, It seems that AWS only lets you SSH in to an EC2 instance as root, 
> so all of my capistrano code checkouts happen under root, so then my 
> mongrels need to be run as root so they can write to log files/folders. 
> I guess I can customize the cap task to switch user after SSH and before 
> checking out the repository.
> Since I need to sudo /usr/local/nginx/sbin/nginx to start nginx, won't 
> that run it as root?

No, only master process should be run as root, the workers should be run
as unprivileged user, say, nobody.

Igor Sysoev

More information about the nginx mailing list