I'm trying to make sudo ask for target password, except when run by root
. Here's what I do:
Defaults:!root targetpw
This way it asks for my password, and if I make it like this:
Defaults:yuri targetpw
it asks for target user's password, but that's not what I wanted.
Defaults targetpw
do the job?Defaults:!root
.