Bug 66

Summary: Add target user %-expansion for password prompt
Product: Sudo Reporter: msg2-spam
Component: SudoAssignee: Todd C. Miller <Todd.Miller>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: normal    
Version: 1.6.0   
Hardware: PC   
OS: Linux   

Description msg2-spam 2002-01-19 15:10:56 MST
It would be nice & useful to have an %-expansion for the password prompt that
expands to the user whose password is being prompted for (i.e. the target user).
 That would allow default prompts like "Password for FOO:", which is rather more
informative than just plain "Password:", especially when using sudo to run a
program/script that will prompt for other passwords.  It can get confusing when
you have consecutive "Password:" prompts and aren't sure which is which.
Comment 1 Todd C. Miller 2002-12-14 11:40:48 MST
The next version of sudo will have a %U escape in the prompt that does this.