Bug 426

Summary: Ctrl+C at password prompt needed once per PAM module
Product: Sudo Reporter: Anders Kaseorg <andersk>
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: normal    
Priority: low    
Version: 1.7.2   
Hardware: PC   
OS: Linux   
Attachments: Patch to skip further password reading if user hits ^C

Description Anders Kaseorg 2010-08-13 04:47:50 MDT
On Ubuntu maverick, installing the winbind package configures an additional PAM module pam_winbind to run after pam_unix.  Then, I have to hit Ctrl+C twice to get out of the sudo password prompt:

$ sudo true
[sudo] password for anders: ^C
[sudo] password for anders: ^C
$
Comment 1 Todd C. Miller 2010-08-14 10:13:31 MDT
Created attachment 284 [details]
Patch to skip further password reading if user hits ^C

I've attached a patch that should do the trick.
Comment 2 Todd C. Miller 2010-08-18 19:17:50 MDT
Fixed in sudo 1.7.4p3, available now.