From b44fb47c3adaab4db430de821e27a38295741e3f Mon Sep 17 00:00:00 2001 From: jeremydenoun Date: Wed, 17 Feb 2021 12:04:11 +0100 Subject: [PATCH] add log details to be more comprehensive (#49) Co-authored-by: Jeremy Denoun --- bin/hardening/5.1.8_cron_users.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/hardening/5.1.8_cron_users.sh b/bin/hardening/5.1.8_cron_users.sh index 731830f..8422e11 100755 --- a/bin/hardening/5.1.8_cron_users.sh +++ b/bin/hardening/5.1.8_cron_users.sh @@ -37,7 +37,7 @@ audit() { for FILE in $FILES_PRESENT; do does_file_exist "$FILE" if [ "$FNRET" != 0 ]; then - crit "$FILE is absent" + crit "$FILE is absent, should exist" else has_file_correct_ownership "$FILE" "$USER" "$GROUP" if [ "$FNRET" = 0 ]; then @@ -69,7 +69,7 @@ apply() { for FILE in $FILES_PRESENT; do does_file_exist "$FILE" if [ "$FNRET" != 0 ]; then - warn "$FILE is absent" + warn "$FILE is absent, fixing (touch)" touch "$FILE" fi has_file_correct_ownership "$FILE" "$USER" "$GROUP"