From 94cbf9e5891045e72af2bbdde5cbb98200370455 Mon Sep 17 00:00:00 2001 From: Tristan PILAT Date: Fri, 22 Mar 2019 17:34:05 +0100 Subject: [PATCH] Fix IS_SSHPERMITROOTNO for OpenBSD --- evocheck.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/evocheck.sh b/evocheck.sh index e98af73..ca805a8 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -337,8 +337,7 @@ if [ "$IS_USRSHARESCRIPTS" = 1 ]; then fi if [ "$IS_SSHPERMITROOTNO" = 1 ]; then - is_debianversion stretch || ( grep -E -qi "PermitRoot.*no" /etc/ssh/sshd_config || echo 'IS_SSHPERMITROOTNO FAILED!' ) - is_debianversion stretch && grep -q ^PermitRoot /etc/ssh/sshd_config && ( grep -E -qi "PermitRoot.*no" /etc/ssh/sshd_config || echo 'IS_SSHPERMITROOTNO FAILED!' ) + grep -qE ^PermitRoot /etc/ssh/sshd_config && ( grep -E -qi "PermitRoot.*no" /etc/ssh/sshd_config || echo 'IS_SSHPERMITROOTNO FAILED!' ) fi if [ "$IS_EVOMAINTENANCEUSERS" = 1 ]; then