diff --git a/linux/evocheck.sh b/linux/evocheck.sh index edd2d03..65df48c 100755 --- a/linux/evocheck.sh +++ b/linux/evocheck.sh @@ -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"