Set shadow permissions

This commit is contained in:
Bob Mottram 2016-11-29 14:31:54 +00:00
parent a9a2ade4cc
commit 0d568644e0
1 changed files with 10 additions and 0 deletions

View File

@ -370,6 +370,13 @@ function disable_deferred_execution {
systemctl disable atd systemctl disable atd
} }
function set_shadow_permissions {
chown root:root /etc/shadow
chmod 0000 /etc/shadow
chown root:root /etc/gshadow
chmod 0000 /etc/gshadow
}
function setup_firewall { function setup_firewall {
function_check create_completion_file function_check create_completion_file
create_completion_file create_completion_file
@ -394,6 +401,9 @@ function setup_utils {
read_config_param "PROJECT_REPO" read_config_param "PROJECT_REPO"
write_config_param "PROJECT_REPO" "$PROJECT_REPO" write_config_param "PROJECT_REPO" "$PROJECT_REPO"
function_check set_shadow_permissions
set_shadow_permissions
function_check remove_bluetooth function_check remove_bluetooth
remove_bluetooth remove_bluetooth