Set command file permissions

This commit is contained in:
Bob Mottram 2016-11-29 20:49:11 +00:00
parent 8e9933725d
commit 11899c9904
3 changed files with 28 additions and 0 deletions

View File

@ -39,6 +39,7 @@ function install_final {
fi fi
function_check split_gpg_key_into_fragments function_check split_gpg_key_into_fragments
split_gpg_key_into_fragments split_gpg_key_into_fragments
set_command_file_permissions
mark_completed $FUNCNAME mark_completed $FUNCNAME
clear clear

View File

@ -570,6 +570,9 @@ function install_apps {
${PROJECT_NAME}-mirrors --app ${a} ${PROJECT_NAME}-mirrors --app ${a}
function_check set_command_file_permissions
set_command_file_permissions
function_check install_completed function_check install_completed
install_completed ${a} install_completed ${a}
echo $"${a} was installed from interactive" echo $"${a} was installed from interactive"
@ -599,6 +602,9 @@ function install_apps {
function_check add_users_after_install function_check add_users_after_install
add_users_after_install ${a} add_users_after_install ${a}
function_check set_command_file_permissions
set_command_file_permissions
${PROJECT_NAME}-mirrors --app ${a} ${PROJECT_NAME}-mirrors --app ${a}
function_check install_completed function_check install_completed

View File

@ -416,6 +416,27 @@ function remove_serial_logins {
fi fi
} }
function set_command_file_permissions {
if [ -d /bin ]; then
chown root:root /bin/*
fi
if [ -d /usr/bin ]; then
chown root:root /usr/bin/*
fi
if [ -d /usr/local/bin ]; then
chown root:root /usr/local/bin/*
fi
if [ -d /sbin ]; then
chown root:root /sbin/*
fi
if [ -d /usr/sbin ]; then
chown root:root /usr/sbin/*
fi
if [ -d /usr/local/sbin ]; then
chown root:root /usr/local/sbin/*
fi
}
function setup_firewall { function setup_firewall {
function_check create_completion_file function_check create_completion_file
create_completion_file create_completion_file