mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-26 15:13:05 +00:00
updated testing
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
c0c24ec8ef
commit
91da6ffaa2
1 changed files with 1 additions and 1 deletions
|
|
@ -59,7 +59,7 @@
|
||||||
when: rhel9cis_5_6_1_4_inactive_settings.stdout | length == 0
|
when: rhel9cis_5_6_1_4_inactive_settings.stdout | length == 0
|
||||||
|
|
||||||
- name: "5.6.1.4 | AUDIT | Ensure inactive password lock is 30 days or less | Getting user list"
|
- name: "5.6.1.4 | AUDIT | Ensure inactive password lock is 30 days or less | Getting user list"
|
||||||
shell: 'egrep ^[^:]+:[^\!*] /etc/shadow | cut -d: -f1'
|
shell: "awk -F: '/^[^#:]+:[^\\!\\*:]*:[^:]*:[^:]*:[^:]*:[^:]*:(\\s*|-1|3[1-9]|[4-9][0-9]|[1-9][0-9][0-9]+):[^:]*:[^:]*\\s*$/ {print $1}' /etc/shadow"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
check_mode: no
|
check_mode: no
|
||||||
register: rhel_8_5_6_1_4_user_list
|
register: rhel_8_5_6_1_4_user_list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue