From 87ea0b9f2ec036b85aece140c7fb0d567a138821 Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Thu, 15 Jun 2017 09:36:55 +0200 Subject: [PATCH] Create ADconnection.sh --- ADconnection.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index 73bb037..0149b4e 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -334,7 +334,7 @@ if [ -f /etc/sudoers.d/sudoers ] then echo Checking sudoers file.. "${INTRO_TEXT}"OK"${END}" else -echo checking sudoers file.. "${RED_TEXT}"FAIL"${END}" +echo checking sudoers file.. "${RED_TEXT}"FAIL not configured"${END}" fi grouPs=$(cat /etc/sudoers.d/sudoers | grep -i $myhost | cut -d '%' -f2 | cut -d '=' -f1 | sed -e 's/\//g') if [ $grouPs = "$myhost""sudoers" ] @@ -355,7 +355,7 @@ if [ $cauth = allow ] then echo Checking PAM auth configuration.. "${INTRO_TEXT}"OK"${END}" else -echo Checking PAM auth configuration.. "${RED_TEXT}"FAIL"${END}" +echo Checking PAM auth configuration.. "${RED_TEXT}"FAIL ssh security not configured"${END}" fi exec sudo -u root /bin/sh - <//g') if [ $grouPs = "$myhost""sudoers" ] @@ -497,7 +497,7 @@ if [ $cauth = allow ] then echo Checking PAM auth configuration.. "${INTRO_TEXT}"OK"${END}" else -echo Checking PAM auth configuration.. "${RED_TEXT}"FAIL"${END}" +echo Checking PAM auth configuration.. "${RED_TEXT}"FAIL ssh security not configured"${END}" fi exec sudo -u root /bin/sh - <