Hacker News new | ask | show | jobs
by john_shafthair 1146 days ago
That seems pretty stupid.

While they're at it, why not update the SSH warning banner with a list of what we do and don't log on this system. As a courtesy to their adversary.

This sudo message has been the same since the dawn of time. There is literally no reason to correct it. This is the one place you don't want to be pedantic, leaking security configuration via stderr.

4 comments

That message is poor UI. If you know what it means, you probably don't care about the possibility of sudo sending an email when you first typed it. If you don't know, you will be worried probably without a good reason to be so.

Nowadays it's even worse than it once was, because now the natural instinct of people is to think that the incident was reported to canonical or ibm. The opposite of how they are supposed to feel about when using free software.

I'd change it to "This attempted was logged" or something like that when that is true. Just so the user is aware that the data they are typing there may be seen by someone else. But by default, in their own systems, that message should never appear, unless they specifically configured it that way.

something like 99% of computers with sudo installed are single-user machines where the only effect of the warning is to scare people

and it's only been the same since people started to switch to sudo in the late 90s; su never printed such a warning

Reminds me of when I was younger and my mom and my brother were using a windows computer. They got the message “an illegal error has occurred” and my mom called me to ask if they had broken the law.
I almost shit myself the first time I saw X Screensaver..

It has to take the prize for worst UX ever.

do you mean the bsod screensaver

sometimes people also complain about xscreensaver's lock screen because it doesn't use a widget library, but the alternative lock screens can often be crashed through bugs in the widget libraries they use

The one with the flaming screen and countdown timer. I had just installed the distro and though I had some malware installed.
oh, that's just the lock screen

the flaming screen is just the xscreensaver logo (it's supposed to save your screen from burnin, originally)

i hadn't ever heard of anyone thinking it was malware, that's pretty funny

jwz is a more brilliant troll than i gave him credit for

When I was young I had messed with the computer and it showed an english message with the word "atom" in it. My mom not being a native speaker freaked out as if a nuclear explosion was about to take place.
>the only effect of the warning is to scare people

Good. If you're not familiar with what sudo does, then you shouldn't be using it in the first place.

If it’s your own computer you should be able to break it until you learn how not to.
If you shouldn't be using sudo, then you shouldn't be listed as a sudoer on that system. If you're listed as a sudoer, then you should become familiar with what sudo does.
i'd argue in a different direction: if sudo barks a scary unknown message at me, i'd avoid using it altogether and just use su, which is the opposite of what people should be nudged to do.
It's an abstraction. You shouldn't need to be familiar with every aspect of what it does.
Are you familiar with every part of the stack you are working on, down to the hardware?
Yes. Largely through torturing my system and reducing it to non-bootable state and having to read up on what symbols I mangled this time and how. Why do you ask?
Maybe update pnews.sh as well to recalibrate the estimate of "hundreds, if not thousands of dollars" per usenet message.