Welcome! Log In Create A New Profile

Advanced

Re: Start nginx worker process with same user as master process

Francis Daly
August 17, 2016 02:12PM
On Wed, Aug 17, 2016 at 12:03:48PM -0400, Sushma wrote:

Hi there,

> I have setup nginx master process with a user , lets say user1.

By that, do you mean "you run nginx as user1", or something else?

> In the nginx.conf, user directive is mentioned with nginx. (user nginx;)
> I understand that worker processes will be spawned by user nginx when I
> start nginx.

Only if user "user1" has permission to change userid to user "nginx".

> Is there a way to start worker processes also as user1 without changing
> anything in the nginx.conf file ?

When I try it, I see

nginx: [warn] the "user" directive makes sense only if the
master process runs with super-user privileges, ignored in
/usr/local/nginx/conf/nginx.conf:6

and my master process and my worker process are running under the same
uid as each other.

Do you see something different?

f
--
Francis Daly francis@daoine.org

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

Start nginx worker process with same user as master process

Sushma August 17, 2016 12:03PM

Re: Start nginx worker process with same user as master process

Francis Daly August 17, 2016 02:12PM

Re: Start nginx worker process with same user as master process

Sushma September 20, 2016 06:48AM

Re: Start nginx worker process with same user as master process

Francis Daly September 20, 2016 04:00PM

Re: Start nginx worker process with same user as master process

Sushma September 21, 2016 01:51AM

Re: Start nginx worker process with same user as master process

Francis Daly September 21, 2016 12:34PM

Re: Start nginx worker process with same user as master process

Sushma September 22, 2016 05:56AM

Re: Start nginx worker process with same user as master process

GreenGecko September 21, 2016 04:10PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 131
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