Those who have recently upgraded to Ubuntu 26.04 might have noticed that sudo now prints asterisks as password feedback, instead of the usual "no feedback" default.

This happens because Ubuntu recently switched to sudo-rs, which has this default behavior.

While this may be helpful to new users, there is no point to reveal password length for more experienced users.

Disable sudo-rs password feedback

sudo EDITOR='emacs -nw' visudo -f /etc/sudoers.d/0pwfeedback

(feel free to remove the EDITOR='...' part if you rather use the default editor -- usually either vim, nano, or ed).

Enter this configuration, save and quit the editor (C-x C-s C-x C-c if using emacs):

Defaults !pwfeedback