Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

nginx default unix domain socket permissions and umask (1 reply)

$
0
0
Hello,

It seems that when nginx creates unix domain sockets as a result of the listen directive it assigns rw permissions for all users.
This is probably because the bind() call which creates the file follows the process umask. Nginx sets the umask to 0 which is the most relaxed setting.

Is there a way to control the permissions assigned at creation to unix domain sockets created by nginx?
Is there a deep reason to always set the umask to 0? Would it be better to let the user decide the umask and inherit it from the process starting nginx?

Thanks.




Amazon Development Center (Romania) S.R.L. registered office: 3E Palat Street, floor 2, Iasi, Iasi County, Iasi 700032, Romania. Registered in Romania. Registration number J22/2621/2005.
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>