Set login umask

This commit is contained in:
Bob Mottram 2016-11-29 13:31:36 +00:00
parent 4add2899d7
commit f5b3393a3b
1 changed files with 7 additions and 0 deletions

View File

@ -361,6 +361,10 @@ function disable_nfs_insecure_locks {
fi fi
} }
function set_login_umask {
sed -i 's|UMASK\t.*|UMASK\t\t077|g' /etc/login.defs
}
function setup_firewall { function setup_firewall {
function_check create_completion_file function_check create_completion_file
create_completion_file create_completion_file
@ -391,6 +395,9 @@ function setup_utils {
function_check disable_nfs_insecure_locks function_check disable_nfs_insecure_locks
disable_nfs_insecure_locks disable_nfs_insecure_locks
function_check set_login_umask
set_login_umask
function_check turn_off_rsys_logging function_check turn_off_rsys_logging
turn_off_rsys_logging turn_off_rsys_logging