forked from evolix/evocheck
Fix check_sudomaint function - ADMIN group does not exist anymore, we now check that the wheel group has NOPASSWD for evomaintenance
This commit is contained in:
parent
5eedf3ad4d
commit
b58ad51307
|
@ -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" ""
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue