Reputation: 217
while inspecting my nginx directory tree, I have found that all of the /etc/nginx
, and so on is owned by root
Is this a normal behaviour, should I run chown -R nginx:nginx /etc/nginx
??
Upvotes: 0
Views: 677
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