[sudo-users] No error message if reading password fails
Todd C. Miller
Todd.Miller at sudo.ws
Tue Oct 9 13:59:26 MDT 2018
On Mon, 08 Oct 2018 14:34:36 +0200, "R. Diez" wrote:
> What is the "expected thing" in this scenario then? Is it documented or
> expected that an "end of file" condition makes sudo quit without an
> error message and without trying to run the command the user specified?
Point taken; it is hard to tell whether the command was run or not
in the absence of any kind of message.
I've just committed a change to print a warning when there is an
error reading the password, no password was read (EOF), or the
password prompt timed out.
xerxes [/usr/src/local/millert/hg/sudo/trunk/src] % sudo -S id < /dev/null
sudo: no password was provided
More information about the sudo-users