the command and the authenticate flag (in sudoers) is false.
runas specs, the latter ones may not be applied.
379) #uid now works in a RunasAlias
+
+380) Don't ask the user for a password if the user is not allowed to run
+ the command and the authenticate flag (in sudoers) is false.
* Assume the worst. If the stack is empty the user was
* not mentioned at all.
*/
- error = VALIDATE_NOT_OK;
+ if (def_flag(I_AUTHENTICATE))
+ error = VALIDATE_NOT_OK;
+ else
+ error = VALIDATE_NOT_OK | FLAG_NOPASS;
if (check_cmnd == TRUE) {
error |= FLAG_NO_HOST;
if (!top)