Earlier quoted context omitted.
The Just in that sentence is wholly unjustified. There are plenty of cli/tui/console/shell shortcuts that are incredibly useful, yet they are wholly undiscoverable and do not work cross-platform, e.g. shell motions between macOS and reasonable OSes.
> shell motions between macOS and reasonable OSes All the movement commands I know work the same in the terminal on a default install of macOS as it does in the terminal on various Linux distros I use. Ctrl+A to go to beginning of line Ctrl+E to go to end of line Esc, B to jump cursor one word backwards Esc, F to jump cursor one word forward Ctrl+W to delete backwards until beginning of word And so on Both in current…
Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords
371–380 of 421 posts
Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords
#372Earlier quoted context omitted.
> and have caused 0 issues in practice Do you have some data to back that up? Because I doubt it’s literally 0. I make this point because we shouldn’t talk about absolutes when discussing security. Fo example, Knowing a password length does make it easier to crack a password. So it’s not strictly “security theatre”. So the real question isn’t whether it has any security benefit; it’s more is the convenience greater t…
Knowing password length makes it easier to crack an insecure password. The SHA256 hash of a 6-symbol diceware password, where each symbol has its first letter capitalized and the rest lowercase, with 1! appended for compliance with misguided composition rules is 540b5417b5ecb522715fd4bb30f412912038900bd4ba949ea6130c8cb3c16012. There are 37 octets in the password. You know the length. You know the composition rules. Y…
Typically they’re between 8 and 12 characters. Usually contain dictionary terms, with the first character capitalised and a numeric value at the end with an exclamation mark.
If you know a little bit of information about the individual (which you likely will if you’re in a position to shoulder surf) then you can easily guess at personal details that individual might use (kids names, favourite movie, sports team, that kind of stuff) which also helps narrow the search field too.
Now I’m not saying that this will apply for everyone. But you can see how knowing the password length combined with another piece of information suddenly increases the statistical probability of cracking some passwords.
And this comes back to my earlier point about how security isn’t about absolutes. It’s about probabilities and risk. So there isn’t going to be a universal truth about whether this decision is correct for everyone or not.
Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords
#373Earlier quoted context omitted.
Unless of course your adversary can count. But if they can count they can also just count the number of keystrokes they hear, especially if you're recording it and they can spend time post processing the audio.
As a general rule, if you have an adversary that cares that much you’re probably doomed. Presumably they’re capable of buying a $5 wrench to physically use against you.
Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords
#374I 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…
> There's no reason for it The reason is to add a delay when bruteforcing passwords.
Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords
#375Earlier quoted context omitted.
It also give you the possibility of filtering out which ones are worth cracking and which ones not
It could also give useful priors for targeted attacks, "Their password is 5 characters, and their daughters name is also 5 characters, let's try variations of that".
Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords
#376Earlier quoted context omitted.
This decision long predates Linux. It's been a staple back to the earliest days of Unix; and it isn't a weird decision if you take into consideration of multi user systems in office environments that have non trivial security considerations (for example telecoms companies), which is exactly where Unix came from.
Well, if leaking the length of the password is such a big deal, why not just use a reasonably long password? Moreover, if someone can see the number of asterisks on the screen, what prevents them from seeing the actual keys that are being pressed?
Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords
#377Earlier quoted context omitted.
No, it's very simple. Do what I said in my comment. Add nodelay to the options for pam_unix.so and set pam_faildelay.so delay=0 That's it. You didn't link to any issue and the weird mistakes and justifications you're making feels like arguing with an LLM. You obviously can't run unix_chkpwd against a local account without root.
> You obviously can't run unix_chkpwd against a local account without root. Wrong. At least check before you say something is obvious. > No, it's very simple. Even more wrong: https://github.com/linux-pam/linux-pam/issues/778#issuecomme... > feels like arguing with an LLM I could say the same about you, repeatedly and confidently asserting falsehoods.
And I just removed the delay using my method. Perhaps try checking something yourself?
Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords
#378How many people with a loud mechanical keyboard shut their microphone to type a password whem sharing their screen in an audio/video call?
If you start by hitting backspace a few times and/or typing random characters and deleting them (to make sure the keyboard's working and sending your inputs where you think) it should obscure the length somewhat.
I doubt this is a super common threat but I would expect it to be already applied by spies or "Jia Tan" like employees.
Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords
#379Earlier quoted context omitted.
Just type Control-U once.
That's great. I've been using terminals for 20+ years, and never new about CTRL-U. Thanks! TIL.
Re: Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords
#380Earlier quoted context omitted.
Why is it better to have a nopassword admin account when using a machine remotely? The point of SSH is to resist mitm attacks, right? If someone could watch my keystrokes, I think I'd have bigger problems!
This resists scenarios where the machine you are running SSH from is compromised, and has a keylogger or something similar installed. SSH can't protect you from a local attacker (in fact, the SSH client binary itself could be the compromised part).