tests: fix sudo rule order.

This commit is contained in:
David Wilson 2018-04-17 13:16:40 +01:00
parent 9eacf8faa9
commit 41d2661ecb
1 changed files with 3 additions and 2 deletions

View File

@ -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