From b58ad5130747cefbeebc5075f1bc621d6e254700 Mon Sep 17 00:00:00 2001 From: Tristan PILAT Date: Wed, 15 Jul 2020 11:21:10 +0200 Subject: [PATCH] Fix check_sudomaint function - ADMIN group does not exist anymore, we now check that the wheel group has NOPASSWD for evomaintenance --- evocheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evocheck.sh b/evocheck.sh index 9106ff1..15f2657 100755 --- a/evocheck.sh +++ b/evocheck.sh @@ -227,7 +227,7 @@ check_customsyslog(){ check_sudomaint(){ file=/etc/sudoers grep -q "Cmnd_Alias MAINT = /usr/share/scripts/evomaintenance.sh" $file \ - && grep -q "ADMIN ALL=NOPASSWD: MAINT" $file \ + && grep -q "%wheel ALL=NOPASSWD: MAINT" $file \ || failed "IS_SUDOMAINT" "" }