Skip to content

Commit

Permalink
Don't install libpam-pwquality twice
Browse files Browse the repository at this point in the history
  • Loading branch information
kreeuwijk committed May 8, 2024
1 parent 54b6014 commit 08652ea
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cis-harden/harden.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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##########

Expand Down

0 comments on commit 08652ea

Please sign in to comment.