mirror of
https://github.com/ansible-lockdown/RHEL9-CIS.git
synced 2025-12-27 15:33:06 +00:00
5.6.1.x Test with shell.
Signed-off-by: root@DERVISHx <nuno.carvalho@siemens.com>
This commit is contained in:
parent
be0a0de9d1
commit
0856639ab5
2 changed files with 13 additions and 0 deletions
|
|
@ -28,6 +28,18 @@
|
|||
- password
|
||||
- rule_5.6.1.2
|
||||
|
||||
- name: "5.6.1.2 | PATCH | Set existing users"
|
||||
ansible.builtin.shell: getent passwd | awk -F: '$3 >= {{ usr_min_uid}} { print "echo "$1";chage -m {{ min_days }} -M {{ min_days }}"$1}'
|
||||
|
||||
when:
|
||||
- rhel9cis_rule_5_6_1_2
|
||||
tags:
|
||||
- level1-server
|
||||
- level1-workstation
|
||||
- patch
|
||||
- password
|
||||
- rule_5.6.1.2
|
||||
|
||||
- name: "5.6.1.3 | PATCH | Ensure password expiration warning days is 7 or more"
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/login.defs
|
||||
|
|
|
|||
|
|
@ -16,3 +16,4 @@ rhel9cis_sshd:
|
|||
allowgroups: sshd wheel
|
||||
# denyusers:
|
||||
# denygroups:
|
||||
usr_min_uid: 1000
|
||||
Loading…
Add table
Add a link
Reference in a new issue