pullhyphoonprotocol
pullhyphoonprotocol

Reputation: 217

NGINX directory files owned by root, is this behaviour normal?

while inspecting my nginx directory tree, I have found that all of the /etc/nginx, and so on is owned by root

NGINX ROOT OWNERSHIP

Is this a normal behaviour, should I run chown -R nginx:nginx /etc/nginx ??

Upvotes: 0

Views: 677

Answers (1)

Danila Vershinin
Danila Vershinin

Reputation: 9875

Is this a normal behaviour

Yes.

should I run chown -R nginx:nginx /etc/nginx ??

No. The nginx user and group are for worker NGINX processes.

The master NGINX process starts as root so there's no problem having the configuration files owned as root.

Upvotes: 1

Related Questions