Open
Description
Describe the Issue
The check for 5.1.7 seems to broken when using AllowGroups
. Possibly there is another reason, I don't quite understand how the check works.
Expected Behavior
After running https://github.com/ansible-lockdown/RHEL9-CIS with rhel9cis_sshd_allowgroups
set, the check audit should succeed.
Actual Behavior
Running the lockdown playbook with
rhel9cis_sshd_allowusers: '' # disabled, using AllowGroups
rhel9cis_sshd_allowgroups: ssh-access
results in a failed audit.
Control(s) Affected
5.1.7 | Ensure SSH access is limited | config
Additional Notes
The output of this command
is the following on our system
/etc/ssh/sshd_config:AllowGroups ssh-access
/etc/ssh/sshd_config:DenyUsers nobody