From 436dea1f6be6473c0dce3d0144cb3ea6c3620f07 Mon Sep 17 00:00:00 2001 From: Samson-W Date: Thu, 24 Aug 2023 21:45:09 +0800 Subject: [PATCH] Update 9.2.14_pam_dictcheck_pwquality.sh --- bin/hardening/9.2.14_pam_dictcheck_pwquality.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/hardening/9.2.14_pam_dictcheck_pwquality.sh b/bin/hardening/9.2.14_pam_dictcheck_pwquality.sh index 6bc6ad9..cb023cf 100755 --- a/bin/hardening/9.2.14_pam_dictcheck_pwquality.sh +++ b/bin/hardening/9.2.14_pam_dictcheck_pwquality.sh @@ -29,7 +29,7 @@ audit_centos () { elif [ $FNRET = 1 ]; then crit "Option $OPTIONNAME set condition is not equal $CONDT_VAL in $FILE_CENTOS" elif [ $FNRET = 2 ]; then - crit "Option $OPTIONNAME is not conf in $FILE_CENTOS" + ok "Option $OPTIONNAME is not conf in $FILE_CENTOS, but because it default is enable, so pass" elif [ $FNRET = 3 ]; then crit "Config file $FILE_CENTOS is not exist!" fi @@ -56,8 +56,7 @@ apply_centos () { warn "Set option $OPTIONNAME to $CONDT_VAL in $FILE_CENTOS" replace_in_file $FILE_CENTOS "^$OPTIONNAME.*" "$OPTIONNAME = $CONDT_VAL" elif [ $FNRET = 2 ]; then - warn "$OPTIONNAME is not conf, add to $FILE_CENTOS" - add_end_of_file $FILE_CENTOS "$OPTIONNAME = $CONDT_VAL" + ok "Option $OPTIONNAME is not conf in $FILE_CENTOS, but because default set enable, so pass" elif [ $FNRET = 3 ]; then crit "Config file $FILE_CENTOS is not exist!" fi