From: Todd C. Miller Date: Wed, 25 Feb 2009 11:16:54 +0000 (+0000) Subject: Document what happens if there is no tty. X-Git-Tag: SUDO_1_7_1~40 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4929b5160917023b77e9cb2c75d90feced9d9a99;p=sudo Document what happens if there is no tty. --- diff --git a/TROUBLESHOOTING b/TROUBLESHOOTING index a90b5eb9f..8ca208058 100644 --- a/TROUBLESHOOTING +++ b/TROUBLESHOOTING @@ -177,6 +177,14 @@ A) The default user sudo tries to run things as is always root, even if Defaults:bob runas_default=oracle would achieve the desired result ofr the preceding sudoers fragment. +Q) When I try to run sudo via ssh, I get the error: + sudo: no tty present and no askpass program specified +A) ssh does not allocate a tty by default when running a remote command. + Without a tty, sudo cannot disable echo when prompting for a password. + You can use ssh's "-t" option to force it to allocate a tty. + Alternately, if you do not mind your password being echoed to the + screen, you can use the "visiblepw" sudoers option to allow this. + Q) How do you pronounce `sudo'? A) The official pronunciation is soo-doo (for su "do"). However, an alternate pronunciation, a homophone of "pseudo", is also common.