Skip to content
Snippets Groups Projects

hardening: reject authentication with empty passwd

Merged Evangelos Foutras requested to merge pam-unix-reject-empty-passwords into master
1 file
+ 6
0
Compare changes
  • Side-by-side
  • Inline
- name: Prevent users with empty passwords from authenticating
replace:
path: /etc/pam.d/system-auth
regexp: " nullok"
replace: ""
- name: Set restricted access to kernel logs
copy: src=50-dmesg-restrict.conf dest=/etc/sysctl.d/50-dmesg-restrict.conf owner=root group=root mode=0644
notify:
Loading