﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1315	Nginx's enforced permissions	Mostafa Hussein		"Hello,
I would like to know which part of Nginx's code is responsible for preventing or chmod the created directories by nginx when we restart it

This https://trac.nginx.org/nginx/browser/nginx/src/core/ngx_file.c#L607 should be the premission of the created folders but somehow if I changed it to 777 and then rebuild and compiled nginx the created auto created directories will be 755. I have ensured that it is not system related so i am wondering if there is something within nginx code doing this part"	enhancement	closed	minor		nginx-core	1.13.x	invalid				"nginx version: nginx/1.12.0
built by gcc 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) 
built with OpenSSL 1.1.0f  25 May 2017
TLS SNI support enabled
configure arguments: --sbin-path=/usr/local/sbin --lock-path=/var/lock/nginx.lock --pid-path=/var/run/nginx.pid --with-openssl=../openssl --with-http_flv_module --with-http_gzip_static_module --with-http_mp4_module --with-http_realip_module --with-http_ssl_module --with-http_stub_status_module --with-http_v2_module --with-http_sub_module --add-module=../mod_security/nginx/modsecurity --add-module=../ngx_cache_purge --with-file-aio"
