You’ve likely heard that Ubuntu’s Rust-based version of sudo shows password feedback by default in 26.04 LTS, upending nearly 40 years of learned (and confusing) behaviour.
But those who want a quick option to temporarily mask sudo input (i.e., not see asterisks as they enter their password) just got an easier way to do it.
An update to sudo-rs just landed in Ubuntu 26.04 LTS which lets you temporarily disable password feedback for sudo by pressing the tab key.
Press this shortcut any point during password entry (before you start or mid-way through) and instead of asterisks showing, a (no-echo) statement is printed, silencing feedback.
This video shows the differences between the default behaviour and when tab is pressed:
no-echo as I press TABThe lack of visible feedback during sudo password input was a recurring point of confusion (some might say a rite of passage) for Linux newbies, who’d assume they did something wrong – or their Bluetooth keyboard connection had dropped out.
Sudo used silent feedback as an intentional security feature, since showing asterisks for your password reveals its length to anyone who might be gawping over your shoulder. If they know you well enough, they might recall you saying password1 was your nickname at school…
While sudo-rs opts to show feedback by default, it is still possible to enable the old, invisible behaviour through a simple sudoers file edit.
But the addition of a keyboard shortcut, added in a patch to the latest upload of sudo-rs in 26.04, offers an in-between approach: visible by default, hidden on demand.
When sudo prompts for your system password, you can type and see asterisks, or press your tab key to temporarily enter ‘no echo’ mode, and thus thwart any tech-minded miscreants indulging in a spot of shoulder-snooping as you work.
This flexible ‘no echo’ mode was pitched as an ‘escape hatch’ for security-conscious, and the ensuing code patch ensures that sudo-rs won’t interpret a tab key press as a character input during password entry itself.
The new behaviour is available to use in latest version of sudo-rs, uploaded to Ubuntu 26.04 LTS this week. If you installed the recent beta release (or an earlier snapshot or daily build), then keep an eye out for it in the Software Updater or apt.