Bug 426 - Ctrl+C at password prompt needed once per PAM module
Ctrl+C at password prompt needed once per PAM module
Status: RESOLVED FIXED
Product: Sudo
Classification: Unclassified
Component: Sudo
1.7.2
PC Linux
: low normal
Assigned To: Todd C. Miller
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-08-13 04:47 MDT by Anders Kaseorg
Modified: 2010-08-18 19:17 MDT (History)
0 users

See Also:


Attachments
Patch to skip further password reading if user hits ^C (506 bytes, patch)
2010-08-14 10:13 MDT, Todd C. Miller
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.