Bug 828

Summary: No tty present and no askpass - output possible solution
Product: Sudo Reporter: TamusJRoyce <TamusJRoyce>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: low    
Version: 1.8.22   
Hardware: PC   
OS: Linux   

Description TamusJRoyce 2018-03-29 12:10:05 MDT
Putty and ssh output 

  "sudo: no tty present and no askpass program specified"

because they are often not configured correctly.

Enchancement: Add an additional line of text, possible solution, when issue occurs.

sudo: no tty present and no askpass program specified.
Did you mean "sudo -S"? This will prompt for a password.
Comment 1 Todd C. Miller 2019-07-19 11:52:00 MDT
I expanded the error message to make it more helpful:
https://www.sudo.ws/repos/sudo/rev/f15ffeffff32
Comment 2 Todd C. Miller 2019-10-14 10:36:13 MDT
Fixed in sudo 1.8.28