Welcome! Log In Create A New Profile

Advanced

Re: Why "user" directive is not effective for master process?

Maxim Dounin
December 15, 2010 10:30PM
Hello!

On Wed, Dec 15, 2010 at 09:12:53PM -0500, speedfirst wrote:

> When I set "user user1;" in config and use sudo to start nginx, all
> worker processes are owned by "user1", only master process are owned by
> "root". With these, I can't create a Linux account with proper
> permission setting for only nginx.

Master process needs root to (re)open listening sockets on
priveleged ports, upgrade binary and so on.

If you want master to be non-root you are free to start it as
normal user. Though you may need some OS tuning to allow it to bind
to privileged ports in this case (not sure if Linux will be able
to do this securely).

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Why "user" directive is not effective for master process?

speedfirst December 15, 2010 09:12PM

Re: Why "user" directive is not effective for master process?

Maxim Dounin December 15, 2010 10:30PM

Re: Why "user" directive is not effective for master process?

Cliff Wells December 16, 2010 12:36AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 73
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready