Skip to content

Commit

Permalink
Make pam-configs names more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmcanonical committed Jan 10, 2025
1 parent da743d8 commit f82dba2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# packages = pam
# variables = var_password_pam_remember=5

config_file=/usr/share/pam-configs/tmppwhistory
config_file=/usr/share/pam-configs/tmp_pwhistory

cat << EOF > "$config_file"
Name: pwhistory password history checking
Expand All @@ -13,5 +13,5 @@ Password-Type: Primary
Password: requisite pam_pwhistory.so enforce_for_root try_first_pass use_authtok
EOF

DEBIAN_FRONTEND=noninteractive pam-auth-update --enable tmppwhistory
DEBIAN_FRONTEND=noninteractive pam-auth-update --enable tmp_pwhistory
rm "$config_file"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# packages = pam
# variables = var_password_pam_remember=5

config_file=/usr/share/pam-configs/cac_pwhistory
config_file=/usr/share/pam-configs/tmp_pwhistory

cat << EOF > "$config_file"
Name: pwhistory password history checking
Expand All @@ -13,4 +13,5 @@ Password-Type: Primary
Password: requisite pam_pwhistory.so remember=5 enforce_for_root try_first_pass use_authtok
EOF

DEBIAN_FRONTEND=noninteractive pam-auth-update --enable cac_pwhistory
DEBIAN_FRONTEND=noninteractive pam-auth-update --enable tmp_pwhistory
rm "$config_file"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# packages = pam
# variables = var_password_pam_remember=5

config_file=/usr/share/pam-configs/tmppwhistory
config_file=/usr/share/pam-configs/tmp_pwhistory

cat << EOF > "$config_file"
Name: pwhistory password history checking
Expand All @@ -13,5 +13,5 @@ Password-Type: Primary
Password: requisite pam_pwhistory.so remember=6 enforce_for_root try_first_pass use_authtok
EOF

DEBIAN_FRONTEND=noninteractive pam-auth-update --enable tmppwhistory
DEBIAN_FRONTEND=noninteractive pam-auth-update --enable tmp_pwhistory
rm "$config_file"

0 comments on commit f82dba2

Please sign in to comment.