From 41d2661ecbfeab5493d86fcb6add73d412b43d15 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 17 Apr 2018 13:16:40 +0100 Subject: [PATCH] tests: fix sudo rule order. --- tests/data/001-mitogen.sudo | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/data/001-mitogen.sudo b/tests/data/001-mitogen.sudo index 08e4fe9d..71e20e6a 100644 --- a/tests/data/001-mitogen.sudo +++ b/tests/data/001-mitogen.sudo @@ -1,8 +1,9 @@ + +# https://www.toofishes.net/blog/trouble-sudoers-or-last-entry-wins/ +%mitogen__sudo_nopw ALL=(ALL:ALL) NOPASSWD:ALL mitogen__has_sudo_nopw ALL = (mitogen__pw_required) ALL mitogen__has_sudo_nopw ALL = (mitogen__require_tty_pw_required) ALL Defaults>mitogen__pw_required targetpw Defaults>mitogen__require_tty requiretty Defaults>mitogen__require_tty_pw_required requiretty,targetpw - -%mitogen__sudo_nopw ALL=(ALL:ALL) NOPASSWD:ALL