335 points · by Tomte · 3y ago · 493 comments
I used the password reset to change it. This time I used a pretty short password I could type (to rule out a weird copy-paste bug or something). Logged in, went to the change password option and THAT page informed me there was a character limit.
If I pasted my password it failed, but if I auto-filled from bitwarden it succeeded. Took me weeks to figure out why...
It took me several password reset attempts to realise what was going on, as my literally just set and password manager-saved password didn't work.
I think in BA's case the password input also had a character limit on it, which is ultimately how I realised what was happening, even though there was no info anywhere that such a limit existed.
And what meaning is that? That link doesn't refer to an authority on the meaning of the nul byte.
That is, it accepted the address on the website, but then it got screwed in the delivery.
I'm still in awe.
The shipping backend might run on a mainframe, almost if not fully unchanged from 40-50 years ago and blissfully unaware of anything but the mainframe quivalent of your standard ASCII.
You can see large stores run all their inventory and such on mainframes. If you ever look over someone's shoulder. My insurance also does but it looks like they don't because it has a nice standard Windows look on the 'inside' of the window. Looked at the title bar and yep, it's just a 3270 terminal emulator that renders fields as nice standard windows input fields that follow whatever theme your computer is set to instead of your telltale black background "DOS" look.
[0]: https://www.avanderlee.com/swift/race-condition-vs-data-race...
OpenBSD has maintained exceptionally good taste when it comes to change. When they rip out and replace a "classic" utility, they invariably make a modern classic: openssh, pf, doas
When others rip out a system and replace wholesale, they often just do the hard work to secure the existing thing: Wayland vs. Xenocara
I don't know that there's any objective way to know ahead of time whether replacement or repair is the right approach. But the fact that such a relatively small project such as OpenBSD has managed such outsized positive impact across the open source landscape speaks volumes to their intuitions here.
# Toggle "doas" at the start.
toggle-doas() {
[[ "${BUFFER:0:4}" = "doas" ]] &&
{CURSOR+=-5; BUFFER="${BUFFER:5}";} ||
{BUFFER="doas $BUFFER"; CURSOR+=5;}
}
zle -N toggle-doas toggle-doas && bindkey '^s' toggle-doas
Even less typing!But I think there are some scenarios where it serves a practical security purpose as well:
- You're in an office, went away to grab a coffee and left the screen unlocked (bad!). Without sudo, a malicious person could indeed quickly install a backdoor or keylogger and take over your system.
- you're executing a third-party script on your user account. Without a password prompt, that script could trivially escalate its privileges by embedding sudo commands. With a password prompt, you'll hopefully stop and ask yourself why the script is asking for your password.
Basically, you actually cannot assuming that every running on a user account is really authorised by that user. So asking for the password is an attempt to reaffirm that it's really the user who gave that command.
> If an attacker is already in the system, it can install key logger and whatnot without the root password.
Yes, but that would require the attacker to, well, run sudo...
Also some people use password-less sudo, so...
For them ssh certificates are much better because you can simply revoke them, and new certs don't have to be added to each server.
At home I still use keys though, but as an enterprise admin I see the issues. Even at home it's kinda annoying having to add a new yubikey to 20 servers.
Can't "jump host" solve this?
(Not an admin, so please excuse if the question is stupid).
It's also kind of the wrong tool for the job anyways. I'd love to see tools that are more built to purpose for what you are _actually doing with the servers_ instead of giving people a REPL and telling them to go nuts.
I’m in love with this because it’s so silly. I’ve always wondered what would happen if you gave a company an unpronounceable name and it took off.
My guess is that the community would name it and that would be that. But I’m fascinated to witness that process happen.
I really hope Sado takes off. ;)
Doesn't it? https://unicode.org/emoji/charts-11.0/full-emoji-list.html#1...
Was one of the 2020 words of the year by some random group of people! https://www.nippon.com/en/japan-topics/c03823/amp/#
⣎⡇ꉺლ༽இ•̛)ྀ◞_༎ຶ_༽ৣৢ؞ৢ؞ؖ_ꉺლ https://www.discogs.com/artist/6400214-%EA%89%BA%E1%83%9A%E0...
As long as it's an actual company taking money/paying for services, you'll have to register it, so it will have a pronounceable name.
Reminds me of "Love symbol" formerly know as "Prince". The symbol is great, but you'll have to register as an artist to get the money, you'll be signing contracts, etc., so whatever clever symbol you find, at some point a standard writable name will be settled on.
The wechat shortcode for their similar face is 可怜.
As far as I know, it is not used for begging (and therefore couldn't be called 求); the one time it was used to me, it seemed to express something more like "ouch!".
Δ
・・・・・・・・・
!!!
†‡†
Or "woosh", as I believe the kids say these days.
/s
https://manpages.debian.org/stretch/chiark-really/really.8.e...
sudo’s notion of some people being able to do some things but not others just doesn’t seem very relevant these days, and never really sat nicely with me in my multi user Unix host days either. I was much more in favor of giving people multiple system accounts and letting the system auth (ssh) handle who can do what.
Now of course we all have umpteen complete hosts each, and the security boundaries are at the virtualisation layer. Passwordless sudo all ‘round!
> Using this program requires you to be able to type an emoji. Most attack code is of such poor quality that they are unable to run commands named with emoji.
What makes you think you met it?
If you've done any research into quality malware, exploits and the like (both domestic and foreign), the quality and often elegant solutions they come up with will not be somehow kneecapped by an emoji. It also only needs to support inputting one emoji in the event that someone uses this out in the field; not hard to do in shellcode.
This is where I believe security-through-obscurity is underrated. As long as you're small enough that targeted attacks aren't part of your threat model, merely being unique affords a great deal of safety. Your wierdo jerry-rigged authentication system may not be particularly robust, but it's more likely than any mainstream product to repel an automated attack.
Therefore the command is basically just asking very nicely, hoping to get one's way
edit. source: dude just trust me
But I bet if you said "pwease emoji" or "bottom emoji", much of the same group would probably get it.
Though maybe "pwease" would this and the fingers.
Yeah, I don’t think I’m going to be calling it that in the morning standups.
I'm on the spectrum, and I can't tell 99% of these things apart. Looks like a sad face to me. no different then the 500 other sad face emoji's I find. I'll stick with =(
If it's any consolation, I'm not, and I don't know exactly what a lot of the face-emojis are supposed to be expressing unless I see a text representation of them or otherwise have them explained.
Edit: ok apparently this is indeed the placeholder for missing emoji in Firefox for Android at least.
If it's any consolation, I don't think anyone could infer that from the emoji itself. The meaning is like a subculture's slang.
I don't use emojis, so I only know the very basic ones (which I consider to be obfuscated emoticons).
It is pretty obvious that it is a face doing the sad puppy eyes, like the one a young niece might do after I refuse to buy her some ice cream. I didn't even know it's meant to be underground, impenetrable slang.
$ apt-get install vim
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
$ fuck
sudo apt-get install vim
[sudo] password for nvbn:
Reading package lists... DoneUntil I read that comment I was having real trouble figuring out WTF it had to do with running commands. I thought it might be some practical joke tool that automatically modifies your commands such that they'll make you sad when they run.
Don’t get why we have to bust out all the cringe internet lingo to describe something that you see in that venerable “real world”.
https://github.com/twitter/twemoji/blob/v14.0.1/assets/72x72...
To me at 2–3 mm it looked more like sleep deprived baggy eyelids (or maybe candy corn eyes, but what does that mean?). I read the whole post thinking the program was named after exhaustion, not pleading.
I just polled the room and most guesses were that it’s sadness/sorrow.
No idea what that's supposed to mean
They wrote it in 1980 for unix; what exactly would you like them to have used?
> (as far as I can tell) have no intention of rewriting it in Rust
Since it will be less than a paragraph before you start ranting about how "obscure targets that nobody uses won't be able to leech off of the rest of the ecosystem by holding back any chance to let us have a modicum of nice things", I trust you, who would surely never be a "leech", have written an actual replacement or submitted patches to start improving the situation? Or perhaps are funding such efforts?
That is obviously not a replacement; either we take the serious approach of "sudo allows only authorized users to run things as root" and yours doesn't control access, or we take the nonserious approach of "sudo has so many bugs that it just gives people access" in which case we hardly need to bother rewriting it.
sudo is for people who need root access. if you need anything less then create a custom group and assign the relevant specific rights there.
The hard part is solving the coordination problem among millions of humans to just pick one and standardize on it. All that work is eliminated in an instant if you just convince the sudo maintainers to bless and ship one.
Pascal
https://web.archive.org/web/20200614183924/http://www.grokla...
So yes, actually, that might have been possible, and if so it probably would have been better than C.
https://en.wikipedia.org/wiki/Setuid
Sudo exists as an elaborate ACL scheme implemented in user-space which takes advantage of the setuid+root permission scheme implemented in the Unix kernel to allow granularly granting root access to non-root users.
But any program can be setuid and/or setgid to any user/group and it will then run as that effective user/group by any user with permission to execute that program.
There are handful of programs that are setuid root because they need to do things like open raw sockets that non-root users can't do, ping being the canonical example. Finding buffer overflows in these programs has been a source of privilege escalation security bugs.
But also we’ve largely given up on Unix users as a security barrier in many places, instead using things like VMs as the interface between different tenants in hosting providers and clouds and such. The age of untrusted shell accounts shared Unix servers is ending, if not over already. Passwordless sudo on a cloud VM is probably the norm now.
1. any program can call fopen(2) and fwrite(2), and yet cat(1) exists. Unix plumbing is mostly there for cases where you're linking programs together in ways those programs didn't expect.
2. Privilege separation. You don't want big, complex programs running as root. You want big, complex programs running as your user, speaking to tiny little well-hardened programs running as root over a pipe, where the tiny-little program can only do one thing.
For example, you might have seen the pattern of piping things into `sudo tee [file owned by root]` in order to be able to write to a file that's owned by root. This fits both of the above considerations: moving the privilege into "tee" rather than having whatever command is generating the text, exposes less of a vulnerability surface; and also, it's `sudo tee` rather than tee(1) itself performing elevation, because tee(1) itself was written a decade or two before this pattern emerged, and so has no idea it could be used this way.
Well played.
1. Although, if I remember correctly, URLs are not supposed to have characters outside of ASCII 33–126 in them (and some of those within the range are also disallowed), although as the link to my poem shows, those restrictions aren’t always enforced.
The space of IRI implementations is quite sparse, mostly limited to browsers (and often rather spotty within the browsers as well). So a page hyperlink or paste into a browser bar will turn it into a URI behind the scenes, but it is unlikely another program or script will handle them.
In fact, I believe WHATWG defines that hyperlinks are URI, not IRI - so the generated HTML in this case by HN is not valid.
IRI are of dubious value - they exist in a space where users are expected to understand and evaluate the legitimacy of an identifier by sight. That said, this is about the best we have for web domains, so (for example) I think all major browsers do render internationalized domain names in their address bar.
https://en.wikipedia.org/wiki/Internationalized_domain_name
https://en.wikipedia.org/wiki/Country_code_top-level_domain#...
Pretty soon you'll be able to do this instead:
https://www. 宝石の十字架 .jp/poetry/invisiblecitylit
(https://www.xn--u9j516hprf6h574cs4w.jp/poetry/invisiblecityl...)
Is that... good? ¯\_(ツ)_/¯
The build-around was having to fiddle with a bunch of core system stuff (super descriptive on my part) with lots of overloading system packages and just... no thanks.
I did it once; never doing it again because then you have to deal with having a non-standard system from then on. Switched to `kitty` and have no problems with emojis.
tl;dr: If you are designing a CLI tool, please refrain from emojis.
It all comes across as very "bah humbug", "get off my lawn", "I hate fun". I'm not going to say I wish the whole internet looked like this site or that other site but I do enjoy something different than the same look everywhere and I like seeing people try new/different things.
Mara: the student that knows a fair bit but isn't afraid to call the teacher out on their shit, also used for most parentheticals
Cadey: the teacher that learns from student questions, also a bit of a self-insert to de-emphasize certain parentheticals
Numa: the shitposter that really does mean well, but communicates in shitposts, memes, and similar
Aoi: the idealist that has difficulty accepting the state of the world as it is
With these I create tension between the characters to help illustrate the point. Aoi was added for this article and helps to ground the satire in a sense of reality by being disgusted by this tool.
This is, of course, how the original Socratic dialogues are written, too! There are characters with distinctive personalities and points of view who (re)appear in multiple dialogues.
Maybe a lot of STEM folks here have never read Plato or other/later philosophical dialogues, or they never got a sense for how they can be useful. Maybe how it's interleaved with the main body of text is confusing for people as well?
Either way, I think the main idea of the format is good. Maybe some small formatting tweaks or a link at the top like 'how to read this document' would help get new readers to grok the format.
I have no problem at all with the presentation of this article. As always your characters make the article really gripping to read imo, like taking part in a good conversation.
But I did not like the way you handled the topic as much this time. I know that it is supposed to be confrontational and a bit in the face. That is the joke. Being nonchalant about is kinda fun, but when that is part of what actually is quite hard criticism of someone else's work it starts to sound very arrogant. But I don't know.
Anyway, looking forward to your next article :)
Where else should one try out "weird" (non-mainstream) concepts and see what sticks?
I don't understand your harsh dismissal of the author based on the design of a personal website, to be honest.
Personally I'm used to it and I think security is more important than indefinite hardware support. Installing the same software on newer hardware is fine.
I have been encountering it now and then - mostly on Nix/NixOS topics (by the way, thank you very much for some very useful articles!), and while I don't have any issues with the format, those characters were a kind of small and a little bit weird (not in a bad way, just... unusual) mystery, making me wonder "who are those, what's the story/going on here besides the obvious dialogue format?". Not much, of course, just a minor casual curiosity, but made me look into the footer/about section if there was anything in there.
Just saying. And thanks again!
https://gist.github.com/lrvick/b0f4b744ab277582b1f9c50e0eb87...
Having a password or a key or any other nonsense to run sudo is security theater.
If you do not want all applications to have real root access, use Qubes to isolate applications into VMs, or at the very least have your daily driver user not have root access and have a separate admin user.
Wrong. He is called ピエン (Pien). Please call him Pien.
If the post is a joke it's not a good one. Sudo has issue, sure. But this tool is even worse! You could just start working as root user the whole time, like many people do (or did) under Windows, but we all should know where this will end.
The developer didn't do anybody a favor creating this. He will be imho directly responsible for any harm done by this tool.
People should really think upfront about the consequences of their stupid jokes.
People are dying these days form "changeless" on TikTok that are often also just stupid jokes put online by even more stupid people without any sense of responsibility. I see parallels here to be honest.
Sadly, the writing style interpersed with the cartoon dialogues is so insufferable and distracting that I learned absolutely nothing. My ADHD didn't help either.
Browser address bars will typically convert and render URI as IRI, because they need to convey the domain name to the user (because we don't have a better way to handle reputation on the web).
testing --><---
This doesn't carry the risk of tainting the new session with the context of the initiating shell (pwd, env, ...) and doesn't only feel like a full login, but actually provides everything that's part of a login session (systemd and DBus user-sessions, shared session context with other shells of the same user, etc).
sudo su -
Which also resets your environment and everything.But that only works if theres a password on root, which is generally seen as ill advised. But was how every distro did it in the olden days before there was a sudo group.
$sudo apt-get install -y systemd-container
to get machinectl>Hello. Before commenting about the author, please read this page that explains >the >pronouns that you should be using. tl;dr: the author of this website is NOT >male. >Please do not use "he" or "him" when referring to the author.
How about
> Hi. I am nonbinary. > I prefer the following gender identity pronoun pairs >(xe/xer),(they/them),(she/her) >If you would like to know more here is a link.
(based on blog post and https://www.reddit.com/r/transprogrammer/comments/ox7aef/chr...)
I am autistic and all I want is an efficient way to address this issue I dont care about the politics. Just give me a universal, drama free, efficient way of addressing you and I will do so.
We should just make that a HTML Meta tag <gender identity pronoun pairs> or microschema
Given that there are over 72 different genders now listed here: (https://www.medicinenet.com/what_are_the_72_other_genders/ar...)
Plus: There is no fixed number of gender identities. They occur on a spectrum, which really means that the possibilities are infinite. https://www.medicalnewstoday.com/articles/types-of-gender-id...
HTML will need ways to convey such information in an orderly and efficient manner.
Or we could just reduce infinite to 1 One pronoun pair to bind then all. . Hu? (For HuMAN) (so only Hu)
In some languages you address people in different a different manner depending on age. and some based on age and perceived status. (and in most some variant if married or not).
All of that can be removed.
Age,Married Status and so on is not required knowledge. Gender identify is also not required knowledge.
Hu / Hua ?
It only shows up for people that visit via Hacker News with ads disabled. If you don't want to give me ad impressions, then when you visit it gives you a nudge to be civil when commenting on the article.
Is there anything I can do to change it so that it's better?
If you don't want to see that message, please disable your ad blocker.
I did the math for last year and somehow my blog actually made a small profit! It's nowhere near enough to make me want to quit my dayjob, but it's at least enough that the excess can pay for all my video game purchases. I need to finish that article detailing the blog's finances for 2022.
> It's also debatable if the entire concept of privilege separation as implemented in Linux and UNIX was a bad idea to begin with but we're stuck with it because of an endless ball of legacy programs controlled by egotistical open source people that refuse to change […]
Not a very charitable way to describe volunteers who don’t want to learn the flavor-of-the-month language to reimplement their old projects. Maybe if there were some folks who knew rust and were interested in doing this kind of work it would get done.
I am a lot more serious in my other posts (such as this one: https://xeiaso.net/blog/2022-media or this one: https://xeiaso.net/blog/hlang-nguh), but sometimes I have to write satirical things otherwise people won't get the point.
Believe what you want though.
Here is the new version (same links):
> <Cadey> I don't know about the code quality standards of the sudo project, but overall I don't see them doing any concerted effort to try to migrate away from C and there are frequent security vulnerabilities that result in attackers getting root access anyways. I really wish the industry as a whole would take languages like Rust a bit more seriously and start actually moving towards programs being safer to use because security vulnerabilities in core infrastructure result in emergency patches. It was disappointing to see an attempt at using Rust in an important Python library torpedoed by users of obscure architectures not supporting Rust. Maybe the solution there is to use WebAssembly as a compile target instead of making everything be native code. I wouldn't wish hppa's reverse stack growth on anyone trying to write a compiler though.
The common reason our most senior engineers tell me isn't even that it's too late to switch, it's that "C++ is perfectly fine as long as you use it right" and "it doesn't matter what the outside world uses" and "performance."
> Maybe if there were some folks who knew rust and were interested in doing this kind of work
In this specific example, "this kind of work" would involve porting Rust to 5+ obsolete CPU architectures. Not exactly rewarding work.
> God I wish they did. They wrote the program in C, (as far as I can tell) have no intention of rewriting it in Rust, and it's had many viable attacks over the years that allowed attackers to gain root privileges and worse. It's also debatable if the entire concept of privilege separation as implemented in Linux and UNIX was a bad idea to begin with but we're stuck with it because of an endless ball of legacy programs controlled by egotistical open source people that refuse to change because then obscure targets that nobody uses won't be able to leech off of the rest of the ecosystem by holding back any chance to let us have a modicum of nice things.
So, I guess fair enough. I will expand it slightly to say: it is an uncharitable way of describing volunteers who don’t feel like learning a new language and reimplementing their old projects while also overturning a huge ecosystem of software.
I wonder if there would be a way to lose the 'value' of a downvote if the account in question predominantly downvotes a specific opinion too much (a form of abuse i think). The assumption being that, "ok, you downvoted three posts, that were all very incendiary; though the other 40+ you've downvoted were all that way, statically the chance that those posts are all offensive is unlikely."
Would be interesting to see; I don't hate Rust, but I don't appreciate the zealous nature of most of their advocates, and for me personally, there's nothing fun about writing in Rust. It's also a bit too bloated for my tastes, i would never want to run it in lowlevel personally. Yet most of the time I stay away from threads talking about Rust, because i just get sent to the bottom fairly quickly, on most sites that encourage discussion.
Also I wonder if you have a secret dashboard full of buttons to control this website, and now there's a "Enable emojis for 10 seconds" button, next to "Subtract 1 karma to anyone with a custom topcolor" and "Promote a random Lisp post to the front page"
E.g., the emoji of the article: "" but I suspect there won't be anything between the quotes.
(An exception was made for the title, in this case; dang mentions that in a comment in the comments here.)
Yes, this is what I meant.
LC_ALL=C
It's important and NECESSARY to be inclusive, and as long as nginx can still provide the UTF-8 characters I don't care; but there is no way I can allow anything other then US ASCII to be on the terminal.
Thankfully it got fixed at some point.