From 13f75e093ebc10cfca1d24ce9a5b71b893325d5e Mon Sep 17 00:00:00 2001 From: Samson-W Date: Mon, 12 Jun 2023 01:27:48 +0800 Subject: [PATCH] Update 9.2.3 for Debian12 --- bin/hardening/9.2.3_pam_dcredit_cracklib.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/hardening/9.2.3_pam_dcredit_cracklib.sh b/bin/hardening/9.2.3_pam_dcredit_cracklib.sh index fd411fa..402ab43 100755 --- a/bin/hardening/9.2.3_pam_dcredit_cracklib.sh +++ b/bin/hardening/9.2.3_pam_dcredit_cracklib.sh @@ -1,7 +1,7 @@ #!/bin/bash # -# harbian-audit for Debian GNU/Linux 9/10 or CentOS Hardening +# harbian-audit for Debian GNU/Linux 9/10/11/12 or CentOS Hardening # # @@ -68,7 +68,8 @@ audit_centos () { audit () { if [ $OS_RELEASE -eq 1 ]; then audit_debian - elif [ $OS_RELEASE -eq 2 ]; then + # debian11/debian12 default use pam_pwquality, same as centos + elif [ $OS_RELEASE -eq 2 -o $OS_RELEASE -eq 11 -o $OS_RELEASE -eq 12 ]; then audit_centos else crit "Current OS is not support!" @@ -114,7 +115,8 @@ apply_centos () { apply () { if [ $OS_RELEASE -eq 1 ]; then apply_debian - elif [ $OS_RELEASE -eq 2 ]; then + # debian11/debian12 default use pam_pwquality, same as centos + elif [ $OS_RELEASE -eq 2 -o $OS_RELEASE -eq 11 -o $OS_RELEASE -eq 12 ]; then apply_centos else crit "Current OS is not support!"