From e5250b84f615ae0d1487a2296f54fd03e1f4130c Mon Sep 17 00:00:00 2001 From: PierreGoude Date: Tue, 7 Feb 2017 13:58:35 +0100 Subject: [PATCH] Update ADconnection.sh --- ADconnection.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ADconnection.sh b/ADconnection.sh index 3d6eb0c..155fcb9 100644 --- a/ADconnection.sh +++ b/ADconnection.sh @@ -102,9 +102,6 @@ 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 @@ -112,6 +109,9 @@ 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}" +fi homedir=$(cat /etc/pam.d/common-session | grep homedir | grep 0022 | cut -d '=' -f3) if [ $homedir = 0022 ] then