forked from ansible-lockdown/RHEL9-CIS
Added new prelim interactive_user_home
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
parent
499b67ceb2
commit
fbe238091b
1 changed files with 7 additions and 0 deletions
|
|
@ -12,6 +12,13 @@
|
||||||
- level1-workstation
|
- level1-workstation
|
||||||
- users
|
- users
|
||||||
|
|
||||||
|
- name: "PRELIM | Interactive User accounts"
|
||||||
|
ansible.builtin.shell: 'cat /etc/passwd | grep -Ev "nologin|/sbin" | cut -d: -f6'
|
||||||
|
changed_when: false
|
||||||
|
register: interactive_users_home
|
||||||
|
tags:
|
||||||
|
- always
|
||||||
|
|
||||||
- name: "PRELIM | Gather accounts with empty password fields"
|
- name: "PRELIM | Gather accounts with empty password fields"
|
||||||
ansible.builtin.shell: "cat /etc/shadow | awk -F: '($2 == \"\" ) {j++;print $1; } END {exit j}'"
|
ansible.builtin.shell: "cat /etc/shadow | awk -F: '($2 == \"\" ) {j++;print $1; } END {exit j}'"
|
||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue