Skip to content

Commit

Permalink
Excluding non-interactive logins shells from being parsed
Browse files Browse the repository at this point in the history
Signed-off-by: layluke <[email protected]>
  • Loading branch information
layluke committed May 2, 2024
1 parent 3508dfc commit 2db15ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/parse_etc_passwd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
- name: "PRELIM | {{ rhel7stig_passwd_tasks }} | Parse /etc/passwd"
block:
- name: "PRELIM | {{ rhel7stig_passwd_tasks }} | Parse /etc/passwd"
ansible.builtin.shell: cat /etc/passwd
ansible.builtin.shell: cat /etc/passwd | grep -v '/sbin/nologin\|/usr/sbin/nologin'
changed_when: false
check_mode: false
register: rhel7stig_passwd_file_audit
Expand Down

0 comments on commit 2db15ef

Please sign in to comment.