4
0
Fork 0

updates root password check

Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
This commit is contained in:
Mark Bolwell 2025-06-12 12:10:44 +01:00
parent f86803b1a7
commit 30bb04b1d4
No known key found for this signature in database
GPG key ID: 997FF7FE93AEB5B9

View file

@ -132,7 +132,7 @@
- rule_5.4.2.4
block:
- name: "Ensure root password is set"
ansible.builtin.shell: passwd -S root | egrep -e "(Password set, SHA512 crypt|Password locked)"
ansible.builtin.shell: passwd -S root | grep -E "(Password set, SHA512 crypt|Password locked)"
changed_when: false
register: prelim_root_passwd_set