Re: No error message if reading password fails

"Todd C. Miller" <[email protected]>
Newsgroups gmane.comp.tools.sudo.user
Message-ID <[email protected]>
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
____________________________________________________________
sudo-users mailing list <[email protected]>
For list information, options, or to unsubscribe, visit:
https://www.sudo.ws/mailman/listinfo/sudo-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.