Skip to content

Commit

Permalink
Use pam_options template with bash turned off
Browse files Browse the repository at this point in the history
  • Loading branch information
alanmcanonical committed Jan 15, 2025
1 parent 4fe51f1 commit e9211e9
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 52 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,18 @@ rationale: 'Preventing re-use of previous passwords helps ensure that a compromi
severity: medium

platform: package[pam]

template:
name: pam_options
vars:
path: /etc/pam.d/common-password
type: password
control_flag: requisite
module: pam_pwhistory.so
arguments:
- argument: enforce_for_root
new_argument: enforce_for_root
{{% if 'ubuntu' in product %}}
backends:
- bash: "off"
{{% endif %}}

0 comments on commit e9211e9

Please sign in to comment.