The default umask on 18.04 LTS is 0022.
I want to set it to 0027 system wide. So for example when logrotate renames old log files, it respects the 0027 umask.
There are no logins on the system only ssh. So this is not a question that can be solved by editing /etc/login.defs Ideas?
Googled this for hours and haven't found a reliable answer.
You may need to add a line to
/etc/pam.d/common-session
readingor it may already be enabled. Then edit
/etc/login.defs
and change the UMASK line to(the default is 022).