mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 15:33:06 +00:00
5.6.5 Force umask sessions /etc/pam.d/system-auth
This commit is contained in:
parent
9d82d67577
commit
aaa05fa672
1 changed files with 5 additions and 0 deletions
|
|
@ -98,6 +98,11 @@
|
|||
regexp: '^USERGROUPS_ENAB'
|
||||
line: USERGROUPS_ENAB no
|
||||
|
||||
- name: "5.6.5 | PATCH | Ensure default user umask is 027 or more restrictive | Force umask on sessions /etc/pam.d/system-auth"
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/pam.d/system-auth
|
||||
line: 'session\trequired\t\t\tpam_umask.so'
|
||||
insertafter: EOF
|
||||
when:
|
||||
- rhel9cis_rule_5_6_5
|
||||
tags:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue