Skip to content

Commit

Permalink
Adding new entry in /etc/pam.d/system-auth
Browse files Browse the repository at this point in the history
Signed-off-by: root@DERVISHx <[email protected]>
  • Loading branch information
brisky committed Nov 10, 2023
1 parent 9fa57a2 commit c6a51ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tasks/section_5/cis_5.6.x.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 sessions /etc/pam.d/system-auth"
ansible.builtin.lineinfile:
path: /etc/pam.d/system-auth
line: 'session required pam_umask.so'
insertafter: EOF
when:
- rhel9cis_rule_5_6_5
tags:
Expand Down

0 comments on commit c6a51ad

Please sign in to comment.