Live data from Hacker News

Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

pbxscience.com

31–40 of 421 posts

Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

#31
post #18

Earlier quoted context omitted.

Leaking the length of your password is about as bad for security as leaking the fact that you have a password, or that you use sudo.

It narrows down the brute force domain by several orders of magnitude

No, it doesn't. The set of all passwords of exactly length N is about 1% smaller than the set of all passwords up to and including length N.

Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

#32
I did this!

I didn't actually know that Mint had enabled this by default. That would have been a useful counterpoint to the naysayers.

If you want the original behaviour you don't actually need to change the configuration - they added a patch afterwards so you can press tab and it will hide the password just for that time.

> The catalyst for Ubuntu’s change is sudo-rs

Actually it was me getting sufficiently pissed off at the 2 second delay for invalid passwords in sudo (actually PAM's fault). There's no reason for it (if you think there is look up unix_chkpwd). I tried to fix it but the PAM people have this strange idea that people like the delay. So I gave up on that and thought I may as well try fixing this other UX facepalm too. I doubt it would have happened with the original sudo (and they said as much) so it did require sudo-rs to exist.

I think this is one of the benefits of rewriting coreutils and so on in Rust - people are way more open to fixing long-standing issues. You don't get the whole "why are you overturning 46 years of tradition??" nonsense.

If anyone wants to rewrite PAM in Rust... :-D

https://github.com/linux-pam/linux-pam/issues/778

Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

#33
post #7

Good. It's terrible UX. The security argument is a red herring. It was originally built with no echo because it was easier to turn echo on and off than to echo asterisks. Not for security.

You got some sources or did you just make that up? Because to hell with UX when it comes to security. Knowing the exact length of a password absolutely makes it significantly less secure, and knowing the timing of the keystrokes doubly so.

Yet somehow, none of the other high security tools I have ever interacted with seem to do this for some reason. No auditor flags it. No security standard recommends hiding it.

But SUDO is the one bastion where it is absolutely essential to not offer hiding keystrokes as an obscure config option, but enable for everyone and their mother?

Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

#34
post #6

sudo is not the only thing that prompts for password in the terminal. There is at least passwd and ssh. I value ctrl+U a lot more for password prompts than the visual feedback, it's even used by GUI on Linux.

Yeah I would like to fix those too but sudo is the one I encounter most. Also the existence of sudo-rs meant there was less push-back. I seriously doubt the maintainers of openssh or passwd would accept this change.

Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

#35
This is such a good decision. It's one of those things that's incredibly confusing initially, but you get so used to it over the years, I even forgot it was a quirk.

In the modern world there is no plausible scenario where this would compromise a password that wouldn't otherwise also be compromised with equivalent effort.

Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

#36
post #18

Earlier quoted context omitted.

Leaking the length of your password is about as bad for security as leaking the fact that you have a password, or that you use sudo.

It narrows down the brute force domain by several orders of magnitude

That's obviously false. It narrows it down less than a factor the length of the password, so unless your password is several orders of magnitude, it lowers narrows by a factor of ~8.

Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

#37
post #30

Earlier quoted context omitted.

Purpose: > That way you can be certain whether or not you entered a character

And the shoulder surger can still count the number of times it changes so you might as well just be normal. They can also count the number of keystrokes they heard.

The echoed stars should disappear when you press enter, that way you are not revealing this information when you share a screen capture.

Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

#38
post #32

I did this! I didn't actually know that Mint had enabled this by default. That would have been a useful counterpoint to the naysayers. If you want the original behaviour you don't actually need to change the configuration - they added a patch afterwards so you can press tab and it will hide the password just for that time. > The catalyst for Ubuntu’s change is sudo-rs Actually it was me getting sufficiently pissed of…

Pretty sure the 2s delay is designed to slow down brute-forcing it.

Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

#39
post #17

Earlier quoted context omitted.

Because that's still weird and confusing to people and still serves no purpose.

Purpose: > That way you can be certain whether or not you entered a character

It's surprising to see an OS, dominant as a sever platform, now optimizing catering to people who are unsure whether they've pressed a button on their keyboard. What's next, replacing asterisks with a progress bar?

Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords

#40
post #11

It's fun, leading edge Linux distros (e.g. GNOME OS) are actually currently removing `sudo` completely in favour of `run0` from systemd, which fixes this "properly" by using Polkit & transient systemd units instead of setuid binaries like sudo. You get a UAC-style prompt, can even auth with your fingerprint just like on other modern OSes. Instead of doing this, Ubuntu is just using a Rust rewrite of sudo. Some things…

You make it sound like there was a discussion where they looked at these two alternatives and chose improving sudo over using run0. Actually I just submitted a patch for this and they accepted it. I don't work for Ubuntu and I didn't even know run0 existed until now (it does sound good though; I hope they switch to that).
Post reply on HN