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