evocheck: Fix IS_SSHALLOWUSERS condition

This commit is contained in:
Alexis Ben Miloud--Josselin 2023-08-23 16:17:51 +02:00 committed by David Prevot
parent 77be2c3fe1
commit 95539ea38c

View file

@ -292,7 +292,7 @@ check_sshallowusers() {
grep -E -qir "(AllowUsers|AllowGroups)" /etc/ssh/sshd_config.d \
|| failed "IS_SSHALLOWUSERS" "missing AllowUsers or AllowGroups directive in sshd_config.d/*"
grep -E -qir "(AllowUsers|AllowGroups)" /etc/ssh/sshd_config \
|| failed "IS_SSHALLOWUSERS" "AllowUsers or AllowGroups directive present in sshd_config"
&& failed "IS_SSHALLOWUSERS" "AllowUsers or AllowGroups directive present in sshd_config"
else
grep -E -qir "(AllowUsers|AllowGroups)" /etc/ssh/sshd_config /etc/ssh/sshd_config.d \
|| failed "IS_SSHALLOWUSERS" "missing AllowUsers or AllowGroups directive in sshd_config"