diff --git a/src/freedombone-utils-final b/src/freedombone-utils-final index 09fa6e45..d28b8275 100755 --- a/src/freedombone-utils-final +++ b/src/freedombone-utils-final @@ -39,6 +39,7 @@ function install_final { fi function_check split_gpg_key_into_fragments split_gpg_key_into_fragments + set_command_file_permissions mark_completed $FUNCNAME clear diff --git a/src/freedombone-utils-selector b/src/freedombone-utils-selector index 8fd90209..25670c4d 100755 --- a/src/freedombone-utils-selector +++ b/src/freedombone-utils-selector @@ -570,6 +570,9 @@ function install_apps { ${PROJECT_NAME}-mirrors --app ${a} + function_check set_command_file_permissions + set_command_file_permissions + function_check install_completed install_completed ${a} echo $"${a} was installed from interactive" @@ -599,6 +602,9 @@ function install_apps { function_check add_users_after_install add_users_after_install ${a} + function_check set_command_file_permissions + set_command_file_permissions + ${PROJECT_NAME}-mirrors --app ${a} function_check install_completed diff --git a/src/freedombone-utils-setup b/src/freedombone-utils-setup index 776cd209..15a82974 100755 --- a/src/freedombone-utils-setup +++ b/src/freedombone-utils-setup @@ -416,6 +416,27 @@ function remove_serial_logins { 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_check create_completion_file create_completion_file