Bugzilla – Bug 66
Add target user %-expansion for password prompt
Last modified: 2002-12-14 15:40:48 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.
The next version of sudo will have a %U escape in the prompt that does this.