ansible-lockdown / UBUNTU22-CIS

Ansible role for Ubuntu22 CIS Baseline
https://ansible-lockdown.readthedocs.io/en/latest/
MIT License
155 stars 68 forks source link

"PRELIM | Gather UID 0 accounts other than root" runs even though ubtu22cis_rule_6_2_10 is false #219

Closed egonzalf closed 2 months ago

egonzalf commented 3 months ago

Describe the Issue "PRELIM | Gather UID 0 accounts other than root" runs even though ubtu22cis_rule_6_2_10 is false.

Expected Behavior If ubtu22cis_rule_6_2_10 is false it should not perform tasks related to it.

Actual Behavior "PRELIM | Gather UID 0 accounts other than root" runs. More over, when encountering multiple UID 0 accounts, it fails because the awk instruction END {exit i}

Control(s) Affected ubtu22cis_rule_6_2_10

Environment (please complete the following information):

Additional Notes I'm creating a PR for this.

Possible Solution I'm creating a PR for this.

uk-bolly commented 2 months ago

closing as now merged, thank you @egonzalf