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