From 7be1a948bb2804dac95dfeaba65124566f5c919c Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Mon, 6 Feb 2017 10:07:27 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index ae73a6f..9a044c0 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -359,6 +359,9 @@ fi if [ -f /etc/sudoers.d/sudoers ] then echo Checking sudoers file.. "${INTRO_TEXT}"OK"${END}" +else +echo checking sudoers file.. "${RED_TEXT}"FAIL"${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" ] then @@ -366,10 +369,6 @@ echo Checking sudoers users.. "${INTRO_TEXT}"OK"${END}" else echo Checking sudoers users.. "${RED_TEXT}"FAIL"${END}" fi -else -echo checking sudoers file.. "${RED_TEXT}"FAIL"${END}" -echo Checking sudoers users.. "${RED_TEXT}"FAIL"${END}" -fi homedir=$(cat /etc/pam.d/common-session | grep homedir | grep 0022 | cut -d '=' -f3) if [ "$homedir" = 0022 ] then