forked from evolix/evocheck
IS_EVOLINUXSUDOGROUP : improve sudoer directive detection
This commit is contained in:
parent
21e0c79570
commit
7961d599a3
|
@ -7,6 +7,8 @@ and this project **does not adhere to [Semantic Versioning](http://semver.org/sp
|
|||
|
||||
### Changed
|
||||
|
||||
* IS_EVOLINUXSUDOGROUP : improve sudoer directive detection
|
||||
|
||||
### Deprecated
|
||||
|
||||
### Removed
|
||||
|
|
|
@ -754,7 +754,7 @@ check_tune2fs_m5() {
|
|||
check_evolinuxsudogroup() {
|
||||
if is_debian_stretch || is_debian_buster; then
|
||||
if grep -q "^evolinux-sudo:" /etc/group; then
|
||||
grep -q '^%evolinux-sudo ALL=(ALL:ALL) ALL' /etc/sudoers.d/evolinux \
|
||||
grep -qE '^%evolinux-sudo +ALL ?= ?\(ALL:ALL\) ALL' /etc/sudoers.d/evolinux \
|
||||
|| failed "IS_EVOLINUXSUDOGROUP" "missing evolinux-sudo directive in sudoers file"
|
||||
fi
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue