From 08652eaa9577c4f8bddf81e54fe5a7c9a0ab0537 Mon Sep 17 00:00:00 2001 From: Kevin Reeuwijk Date: Wed, 8 May 2024 15:41:02 +0200 Subject: [PATCH] Don't install libpam-pwquality twice --- cis-harden/harden.sh | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cis-harden/harden.sh b/cis-harden/harden.sh index 4fc7dba..105f96f 100755 --- a/cis-harden/harden.sh +++ b/cis-harden/harden.sh @@ -731,10 +731,6 @@ harden_log() { ########################################################################## harden_auth() { - #Install the pam_pwquality module - apt-get update -y - apt-get install -y libpam-pwquality - # Define the new values for minlen and minclass new_minlen="minlen = 14" new_minclass="minclass = 4" @@ -848,7 +844,7 @@ harden_auth() { update_config_files 'PASS_MAX_DAYS' 'PASS_MAX_DAYS 365' ${config_file} update_config_files 'PASS_WARN_AGE' 'PASS_WARN_AGE 7' ${config_file} - echo "Password expiry policy updated to PASS_MIN_DAYS 1 & PASS_MAX_DAYS 365" + echo "Password expiry policy updated to PASS_MIN_DAYS 1 & PASS_MAX_DAYS 365 & PASS_WARN_AGE 7" #####################Password encryption standards##########