[sudo-users] No error message if reading password fails

Todd C. Miller Todd.Miller at sudo.ws
Tue Oct 9 16:21:46 MDT 2018


On Tue, 09 Oct 2018 20:37:43 -0000, "Jepeway, Chris" wrote:

> Not sure re: this notion, but what about taking the password from /dev/tty
> if it's available and from stdin if it's not?

Sudo will read the password from /dev/tty by default.  It is only
when the -S option is used that it uses stdin in preference.  The
intent of the -S option is to allow sudo to take the password via
a pipe.

 - todd


More information about the sudo-users mailing list