Skip to content

Commit

Permalink
restrict access to su to members of wheel (ansible-lockdown#14)
Browse files Browse the repository at this point in the history
* restrict access to su to members of wheel
  • Loading branch information
amunter authored and shepdelacreme committed Feb 27, 2017
1 parent 7642f7b commit fda7953
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasks/section5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,11 @@
- rule_5.5

- name: "SCORED | 5.6 | PATCH | Ensure access to the su command is restricted"
command: /bin/true
lineinfile:
state: present
dest: /etc/pam.d/su
regexp: '^#auth\s+required\s+pam_wheel\.so'
line: 'auth required pam_wheel.so use_uid'
tags:
- level1
- level2
Expand Down

0 comments on commit fda7953

Please sign in to comment.