Bugzilla – Bug 1081471
sudo 1.8.22-1.1 Password Prompt Does Not Expand Username
Last modified: 2018-02-21 13:34:02 UTC
The password prompt from the sudo command installed by sudo-1.8.22-1.1.x86_64 does not properly show the username for which the password is required. Example: lovells@ron5tum:~$ sudo -i [sudo] password for %{p}: Normally "%{p}" would be "lovells". (I commented-out "Defaults targetpw" in /etc/sudoers, so sudo(8) wants my password, not root's.) The command otherwise works correctly, i.e. I do switch to root after entering my password.
Looking at the binary, I see that it contains the parameters given to configure. One of them is "--with-passprompt=[sudo] password for %{p}:", which should be "--with-passprompt=[sudo] password for %p:" To verify this, I patched /usr/lib/sudoers.so by erasing the curly braces and adding two nulls after the colon, and now the user name is expanded correctly.
duplicate of 1081470 *** This bug has been marked as a duplicate of bug 1081470 ***
Confirming fixed in sudo 1.8.22-2.1 in TW Snapshot 20180219. Great work, guys!