Skip to content

Commit

Permalink
PAM: Remove pam_unix nullok from /usr/share/pam-configs/unix also
Browse files Browse the repository at this point in the history
  • Loading branch information
pyllyukko committed Oct 26, 2024
1 parent 45ca8b8 commit 9d7cda3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/pam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,13 @@
- debian
when: ansible_distribution == "Debian" or ansible_distribution == "Kali"
ansible.builtin.replace:
path: /etc/pam.d/common-auth
path: '{{ item }}'
regexp: '\s+nullok(_secure)?'
replace: ''
backup: true
with_items:
- /etc/pam.d/common-auth
- /usr/share/pam-configs/unix

# https://wiki.debian.org/WHEEL/PAM
# This is not enabled in Slackware because it has a separate "Deny use of su" task
Expand Down

0 comments on commit 9d7cda3

Please sign in to comment.