17 ms·
🥺: the best sudo replacement
- cdogl 4y agoI didn’t learn anything from this post about why to use this sudo replacement except that it’s written in Rust and that it handles errors. Am I missing something?
- yjftsjthsd-h 4y agoSarcasm/humor; the program in question does no authentication, so it's not an alternative in any meaningful sense.
- varajelle 4y agoI was thinking the same. But then I thought about it more and wondered why you need to enter your own password if you're already logged on. If an attacker is already in the system, it can install key logger and whatnot without the root password. And the xn--ts9h program can have the Unix permission so that only the user can run it.
- account-5 4y agoInsider threat, attacker not in the system, you leave your terminal unlocked and are away. Someone walks passed and tries to install something from you terminal?
- CJefferson 4y agoWhile it leads to slightly more chance of traceability, I've seen one line "curl | sh" which install a tool which transmit everything you type, or just your password (when you next type it) off to a remote server, so once you've left a terminal unattended you are in trouble anyway. This is one place when windows can be much better, as users can't catch ctrl+alt+del, so you can always press that before logging in.
- karatinversion 4y agoYou need to enter your password so that software you run can’t give itself root privileges without permission
- xg15 4y agoThere is the mental function signalling "hang on, you're about to do something unsafe. Are you sure you want to do this?" 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...
- varajelle 4y agoIf I'm not mistaken, especially with x11, it is trivial to install a keylogger without root password. Just a process in the background that listen to your keys and send them over the wire. (And you can add that program in the list of program to run while logging in)
- Cloudef 4y agoYet another clickbait for rust sigh
- xena 4y agoThe actual title is supposed to be "🥺: the best sudo replacement", but I'm not surprised that Hacker News stripped the emoji.
- warinukraine 4y ago[flagged]
- seanw444 4y agoYeah there is a lot of overlap between overused anime imagery, and hackers. It's certainly strange.
- warinukraine 4y ago[flagged]
- thendrill 4y ago[flagged]
- xena 4y agoThank you for your feedback. I will increase the thing.
- dang 4y agoWe've banned this account for posting flamebait and unsubstantive comments and generally breaking the site guidelines a lot. Please don't create accounts to do that with; it will eventually get your main account banned as well. https://news.ycombinator.com/newsguidelines.html https://news.ycombinator.com/newsguidelines.html
- warinukraine 4y ago[dead]
- tmdh 4y agoWait? it doesn't make any sense. So any userspace program can call `setuid(0)` and `execv()`? Why is there sudo in the first place? I am not getting it.
- js2 4y agoThe program needs to have the setuid bits set on its inode (chmod u+s), and be owned by root. https://en.wikipedia.org/wiki/Setuid 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.
- tmdh 4y agoUnderstood. Thanks.
- mcpherrinm 4y agoFortunately these days programs like ping can use more focused alternatives to setuid, like CAP_NET_RAW, to greatly reduce attack surface. 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.
- upon_drumhead 4y agoAny userspace can call it, but unless you have the SUID bit set on the binary and have it owned by root, it won’t really do much.
- derefr 4y ago
- upon_drumhead 4y ago[flagged]
- detaro 4y agoI think you should be more concerned that you can't identify an obvious shitpost if you see one.
- Volundr 4y agoI'm pretty sure the (as far as I can tell) was about not intending to rewrite in rust. > (as far as I can tell) have no intention of rewriting it in Rust,
- upon_drumhead 4y agoAhh, yes, your right. That part is certainly my misunderstanding.
- Thorentis 4y ago[flagged]
- baby 4y agoI loved it lol
- mrwnmonm 4y agoWait, HN renders emojis?
- dang 4y agoIt doesn't except for a 10-second window today. https://news.ycombinator.com/item?id=34460417 https://news.ycombinator.com/item?id=34460417
- sph 4y agoI swear I saw a heart emoji a few months ago in a comment at the bottom of a long thread. Not sure if it was a bug, an easter egg, or maybe a figment of my imagination. 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"
- dhosek 4y agoIt might have been a rendering of U+2661 ♡ or U+2665 ♥ or U+2764 (this last one does get stripped by HN) which are not emoji but may be rendered as such by the browser.
- sph 4y agoThis is dangerous information to spread. Censor yourself, or it will be abused and we will lose this easter egg forevermore. Let's keep it a secret between you, I and dang's emoji stripping code.
- warent 4y agoFor anyone wondering, this is basically a young millennial / gen z meme. The emoji is usually pronounced "pwease", as in a childlike pronunciation of "please" Therefore the command is basically just asking very nicely, hoping to get one's way edit. source: dude just trust me
- tux3 4y agoAlternatively, a good chunk of my twitter feed would call this the bottom emoji, without attempting to give it a pronunciation. I don't think any particular pronunciation has consensus, but various groups of people imbue it different meanings.
- xena 4y agoThis tool canonically has no pronunciation and any attempt to give it one is non-canon. It is a child of the Internet.
- LesZedCB 4y agotell that to the gif guy
- madeofpalk 4y agopre-internet
- 4y ago
- deleted 4y ago[deleted]
- UI_at_80x24 4y agoI know I'm an old fart but this is yet another reason why I don't want my servers supporting UTF-8. 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.
- untech 4y agoHow would you read git log output with non-ascii author names then?
- deathanatos 4y agoThat actually didn't work not too long ago. I don't remember if it was git or less, but "unicode" characters it would end up getting reified as, e.g., "<U+1234>", as I recall. Thankfully it got fixed at some point.
- chungy 4y agoUnfortunately, the C locale will not achieve your goal: UTF-8 will be merely a subset of what you support, rather than getting rid of it.
- deleted 4y ago[deleted]
- readthenotes1 4y agoI have more trouble interpreting emojis then I do emotions. God help me.
- gnicholas 4y agoI end up hovering a lot on slack to find out the translation. And thankfully Siri reads them out loud to me when I have my airpods in.
- xdennis 4y agoPeople who use emojis aren't the type to lookup the official meaning. In other words, actual use is at times very different from the official description.
- phoe-krk 4y ago> I wonder how many people's RSS/JSONFeed readers we broke with the title... Well played.
- xena 4y agoThe ironic part is that I didn't break any RSS readers! I broke URL parsers in chat apps, scp, and for command line arguments to `tailscale serve`.
- dhosek 4y agoI have a poem that I published which has a Japanese title (宝石の十字架). The journal that published it put that in the URL: https://www.invisiblecitylit.com/poetry/宝石の十字架/ https://www.invisiblecitylit.com/poetry/宝石の十字架/ and not surprisingly, many URL parsers don’t like the Japanese text.¹ I really need to get around to changing the link that I have in my publications list to use the URL encoded version of the title so that it's easier to share on systems that don’t like the Japanese there. 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.
- RealStickman_ 4y agoEmoji domain names exist, so I'm pretty sure you can put anything you want in your URL. Displaying the URL might differ though. https://xn--i-7iq.ws/ https://xn--i-7iq.ws/
- recuter 4y agoBoy do I have news for you: https://en.wikipedia.org/wiki/Internationalized_domain_name https://en.wikipedia.org/wiki/Internationalized_domain_name https://en.wikipedia.org/wiki/Country_code_top-level_domain#Internationalized_ccTLDs https://en.wikipedia.org/wiki/Country_code_top-level_domain#... Pretty soon you'll be able to do this instead: https://www https://www. 宝石の十字架 .jp/poetry/invisiblecitylit (https://www.宝石の十字架.jp/poetry/invisiblecitylit https://www.xn--u9j516hprf6h574cs4w.jp/poetry/invisiblecityl...) Is that... good? ¯\_(ツ)_/¯
- CameronNemo 4y agoFor some more serious alternatives, I have heard of many people finding doas to be a drop in replacement. Furthermore, I've heard some people suggest neither doas nor sudo, but instead using an SSH server to gain root access to your local machine. It could listen on localhost and use key-based auth to allow root logins...
- zamadatix 4y agoI used the SSH server method for a while on a Windows machine since it's built in Terminal doesn't support mixed security contexts between tabs/panes.
- augusto-moura 4y agoI did use ssh on localhost to do some X11 trickery once. It works surprisingly well
- AtlasBarfed 4y agoExcept the enterprise security industry is waging war on ssh keys and ssh/sshd.
- themikesanto 4y agoInteresting. Could you expand on that, or point me towards some related reading? Thanks!
- arp242 4y agoWhat's wrong with ssh keys? Or ssh/sshd for that matter?
- xena 4y agoThe main problem with SSH keys is that they are good at small scales, but at larger scales the abstractions start to be really leaky. Distributing SSH keys across hundreds of machines is a nontrivial task. Not to mention the lack of audit logging in opensshd and the lack of session recording (these requirements suck but acronym compliance means you need them anyways). 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.
- deleted 4y ago[deleted]
- bee_rider 4y agoI mean clearly this is all quite tongue in cheek but: > 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.
- lilyball 4y agoThe quoted paragraph has nothing to do with language choice.
- bee_rider 4y agoThey didn’t write in paragraphs, it is more like a collection of IRC posts or something. Here’s the whole post thingy: > 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.
- chaxor 4y agoIt's obviously a (failed) attempt to be funny by being very sarcastic. No one is stupid enough to this that writing it in Rust was even an option in the days unix was written - especially considering the types of people that would know how to write C and Rust for kernels.
- eliaspro 4y agoI replaced "sudo" in all my systems a long time ago with an alias to "machinectl shell .host" which is IMHO far superior to it, as it doesn't just spawn a new shell as a privileged process, but instead initializes a full user-session and then spawns a shell in this user-session. 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).
- mid-kid 4y agoSudo's -i option is able to provide you with a shell in the same state that it'd be if it were a fresh login. I've burned this into my fingers a long time ago. Also, in most configurations you have to specifically whitelist environment variables for them to surivive a "sudo" call.
- sph 4y agoIs there another way of opening a root shell other than "sudo -i"? That's what I've been using for a decade. How do other people do it?
- TheAdamist 4y agosu -l root 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.
- error503 4y ago`sudo su` is a way.
- doublepg23 4y agoI've always used sudo -s but no clue why.
- yjftsjthsd-h 4y ago
- chrisweekly 4y agoreminds me of a colleague some years ago who often put emoji in his git commit messages.
- 1f60c 4y agoThere’s even a standard (of sorts): https://gitmoji.dev https://gitmoji.dev
- deleted 4y ago[deleted]
- gumby 4y agoTyping emoji is a pain, but the chat suggests that that might be an advantage: > 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.
- jowsie 4y agoIt's easy on Windows, just winkey+.
- pxc 4y agoThis is the best feature of Windows tbh
- andai 4y agoThis launched the magnifier.
- ripley12 4y agoIt's the Windows key and the period (".") key, not the Windows key and the plus key ("+").
- avgcorrection 4y agoIs that the interface where I have to remember a Unicode code point just to get an em-dash?
- brundolf 4y agoI'm really curious how much of a joke that was and wasn't
- troyvit 4y agoYeah! First I read the HN comments and saw how pissed many people were. That helped set the tune for the article (read: it helped me handle my own triggers) and it was a lot more fun that way.
- yjftsjthsd-h 4y ago> They wrote the program in C 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?
- xena 4y agoI did write an actual replacement. It's what TFA is about :)
- yjftsjthsd-h 4y ago> I did write an actual replacement. It's what TFA is about :) 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.
- recuter 4y agoYesn't.
- gnarbarian 4y agoto me the solution seems fairly obvious, and as is tradition already exists in unix as groups. 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.
- yjftsjthsd-h 4y agoAnd then use su or whatever to control access to the actual root account? You'll always need some amount of access to it, although I suppose you're correct that in a truly well-functioning system it would be needed much less since everybody would be in enough groups to get access to the stuff they actually need.
- nwah1 4y agoI didn't know that you could use emojis in URLs. Neat.
- dwaite 4y agoYou cannot. This is an IRI, not a URI. 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).
- dokem 4y ago[flagged]
- mcculley 4y agoThe first time I saw perfectly valid Unicode take down an RSS reader (in ~2003), it was an ü that did it. I have taken to calling that the kaboomlaut in unit tests.
- azalemeth 4y agoThe are quite a lot of "gotchas" with passwords being Unicode though. One of my favourite tricks is to include a null byte in passwords and see what happens. Sudo treats it as the end of the string. Passwd gives "token manipulation error" and nopes out. Many websites seem to fail in interesting ways...
- deleted 4y ago[deleted]
- Dylan16807 4y agoI wouldn't call that "being Unicode" though, since null byte is in ASCII.
- msla 4y agoIt depends on the encoding: In UTF-16, a lot of characters have 0x00 as part of their encoding. That's the null byte, even if the software isn't technically supposed to see it that way, so it's a valid test. (Easy, too: Any character that's also in ASCII will be represented with a 0x00 byte in UTF-16.) Of course, UTF-8 solves that problem, plus the problem of surrogate pairs.
- fsckboy 4y ago> That's the null byte, even if the software isn't technically supposed to see it that way that's a null byte, even if the spec says it's not the string terminator. i just think it's worth referring to things by using words that more precise semantics if possible
- cmeacham98 4y ago
- actinium226 4y ago[flagged]
- geysersam 4y agoThe dialog format is the best part!
- kleer001 4y agoIt seems informal and a waste of my time. I'm reminded of the biographical wordarrheah at the head of recipes these days. I. Don't. Care. I'm too old and I don't have time for this.
- edgyquant 4y agoNot just recipes. Ad driven and SEO industries have made every thing you search for 90% irrelevant bs. I used to be able to search for a PHP function or howto and just see the code. Now to learn something in JS I have to scroll through 500-1000 words of bloat for 10 lines of code when I just want the name of a function or the common way of doing things. This sucks.
- throwanem 4y agoYeah, can't let it cut into your "complaining about websites" time.
- kleer001 4y agoYou must be a blast at parties held by the professionally offended. Wrong scale of time. Comments take <2 minutes. Reading an article can take >10 minutes. Additionally, the complaining is less than 5% of my commenting time. I use it mainly to bolster opinions not already commended.
- wereallterrrist 4y agoAnd let's ask ourselves what exactly prompts folks to need to comment their disdain for only certain types of articles and not the countless dozens of others they filter through regularly. We'll never know!
- NotYourLawyer 4y ago[flagged]
- hallway_monitor 4y ago[flagged]
- ahartmetz 4y ago[flagged]
- jszymborski 4y agoCan we please not turn this into a fury flame thread. I don't think HN should take a perfectly interesting technical article and make it about the author's online identity. Frankly a lot of this thread is really disappointing to read.
- NotYourLawyer 4y ago[flagged]
- some_furry 4y agoFurry isn't a fetish. https://soatok.blog/2021/04/02/the-furry-sexuality-blog-post/ https://soatok.blog/2021/04/02/the-furry-sexuality-blog-post... Hope this helps.
- mechanical_bear 4y ago[flagged]
- gamjQZnHT53AMa 4y agoOr you could just, you know, not read the author's stuff? They're posted here enough that you know it's going to be there. No one is demanding you read it and then share your brilliant takes on sexuality with us.
- brundolf 4y agoSome people probably hate it, but I really enjoy the conversational format of these posts. Very novel and interesting way to bounce around a topic
- xena 4y agoThanks! That's exactly the point of it! I'm going to be working on the CSS this weekend on stream (the images being so big for longer conversations take up too much screen real estate), but in general the idea is to have a combination of the Socratic method of dialogue based teaching combined with a few consistently written characters; not to mention it helps move out parentheticals to break up giant walls of text. I don't have any page explaining each of the characters and their tropes, but here's a small list: 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.
- epakai 4y agoThe dialog could probably use some left/right padding or an alternate font to indicate it's not part of the main text. Initially I found it a bit unclear, and also hard to skim the article.
- arp242 4y agoI just always login as root. No sudo or other programs needed, no security vulnerabilities, no complexity. Clearly the most secure solution as it's widely known that using the setuid bit is a security problem.
- megous 4y agoYes, OTOH I don't mind others using sudo or setuid root permissions. I once hacked a payment terminal because someone thought it would be a good idea to put setuid root on pppd :) (we needed to do a bit more than the official SDK api allowed us)
- imglorp 4y agoMaybe not for yourself, but sudo can be a benefit when playing with others: fine grained roles and permissions, audit trail, etc.
- mrlonglong 4y agoKinda reminds me of Puss in Boots pulling that face when he wants something so badly. Cats will rule the planet after we're long gone.
- whatshisface 4y agoIt does have a name, Face with Pleading Eyes. https://unicode-table.com/en/1F97A/ https://unicode-table.com/en/1F97A/
- voz_ 4y ago[flagged]
- xena 4y agoGood news! I'm going to be adding another furry character to the website thanks to this comment. Feel proud, you've had a positive impact on the wallet of a furry artist.
- some_furry 4y agoThanks for your patronage. The fandom will thrive.
- hallway_monitor 4y ago[flagged]
- whatshisface 4y agoAs a hallway monitor, you should be aware that you're not supposed to be reading HN at work, now are you? :-)
- deleted 4y ago[deleted]
- bitwize 4y agoHer articles repeatedly top Hackernews. And her audience largely shares or graciously accepts her predilections. Do you know how many of the most powerful people on the internet are furries/otherkin?
- bobleeswagger 4y ago> Do you know how many of the most powerful people on the internet are furries/otherkin? what makes someone powerful on the internet?
- 4y ago
- hammerton 4y ago[flagged]
- Waterluvian 4y ago“ has no pronounceable name in English or any other speakable human language.” 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. ;)
- pyuser583 4y agoI’ve worked with a consulting company that chose their name because it was extremely hard to pronounce/understand.
- ShredKazoo 4y agoWhy?
- CodexArcana 4y agoJust look at what happened to Prince.
- VincentEvans 4y agoI had to google him - he died from it?! WTF!!
- jonathankoren 4y agoGiven the furry/weeb connection, it will inevitably be called "uwu"
- cnasc 4y ago> “ has no pronounceable name in English or any other speakable human language.” Doesn't it? https://unicode.org/emoji/charts-11.0/full-emoji-list.html#1f97a https://unicode.org/emoji/charts-11.0/full-emoji-list.html#1...
- rtpg 4y agoPeople in Japan call this emoji “pien” (pronounced “P N” if you’re American) which means like… slight dejection 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.nippon.com/en/japan-topics/c03823/amp/#
- cordite 4y agoThis is silly, thank you for brightening my day
- joshstrange 4y agoThere is a lot of complaining in this thread about the website, the idea, and the author but I have to say I really enjoyed this webpage. There was a another website posted recently [0] that a different style than most things posted here which I also enjoyed. I don't understand why people get so up in arms about things like this. I thought the in-article conversations were fun and playful and added to my enjoyment of the post. 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. [0] https://news.ycombinator.com/item?id=34446673 https://news.ycombinator.com/item?id=34446673
- whatshisface 4y agoRust, unique website design and cartoon characters together are like a perfect storm.
- yrsdi 4y agohow to type the emoji on terminal?
- thomassmith65 4y agoDoes HN no longer strip emoji characters, or is it just a bug that allows this specific character to slip through?
- some_furry 4y agoLook downthread. Dang made an exception.
- meindnoch 4y ago[flagged]
- layer8 4y ago> Most attack code is of such poor quality that they are unable to run commands named with emoji. This makes the program secure. That’s a pretty wild conjecture.
- Razengan 4y agoThe emoji is called pien ぴえん
- deleted 4y ago[deleted]
- iLoveOncall 4y agoCringe.
- binarymax 4y agoTangent: I’ve never seen emoji rendered on HN before. Really surprised to see this in the title.
- skissane 4y agoOnly because dang went into the backend and manually inserted it as a special exception, bypassing the filter: https://news.ycombinator.com/item?id=34460417 https://news.ycombinator.com/item?id=34460417
- okonomiyaki3000 4y ago> has no pronounceable name in English or any other speakable human language. Wrong. He is called ピエン (Pien). Please call him Pien.
- npteljes 4y agoYep: https://ja.wikipedia.org/wiki/%E3%81%B4%E3%81%88%E3%82%93 https://ja.wikipedia.org/wiki/%E3%81%B4%E3%81%88%E3%82%93
- mikotodomo 4y agothis is so hilarious and cute
- cmsj 4y ago[flagged]
- tiffanyh 4y agoOh please, don’t start using emojis on HN.
- deleted 4y ago[deleted]
- aendruk 4y agoFor anyone else confused by the name, switching from Twemoji to Noto Color Emoji made it recognizable.
- sergiomattei 4y agoThis is a beautiful website with awesome anime-style cartoon formatting. The palette is really nice, well-selected too. 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.
- deleted 4y ago[deleted]
- throw7 4y agosurprised that HN didn't filter out the emoji in the title... I've had HN strip out unicode or whatever in posts. testing --><---
- gorgoiler 4y agoI always liked Debian’s really. The first thing it does is make one system call to see if you can open a file in /etc with write permissions. If you can’t then it crashes immediately without doing anything else. The attack surface is very small. https://manpages.debian.org/stretch/chiark-really/really.8.en.html 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!
- MobiusHorizons 4y agoI feel obliged to mention doas[1], which is a sudo alternative from openBSD. It is written in c, but tries to be smaller and easier to configure. I am not qualified to vouch for or against it, but it is interesting. 1: https://man.openbsd.org/doas https://man.openbsd.org/doas
- accrual 4y agoI noticed and enjoy that both sudo and doas use each side of a standard qwerty keyboard to type, though doas uses 3 keys on the left while sudo has two on the left and two on the right. It made the transition a little easier for my muscle memory.
- epakai 4y agoOn dvorak they're also mostly on the home row (except d), and the split is even 2-2 for both. (aoeu)id(htns)
- scns 4y agoThe neo2 layout has both in the home row.
- arp242 4y agoI mapped ^S in zsh to toggle "doas" at the start of the line: # 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!
- mcarmichael 4y agoThe primary author, Ted Unangst, has a couple of blog posts describing the inception of doas, and its intended typical use patterns: https://flak.tedunangst.com/post/doas https://flak.tedunangst.com/post/doas https://flak.tedunangst.com/post/doas-mastery https://flak.tedunangst.com/post/doas-mastery
- 4y ago
- lrvick 4y agoI feel it relevant to point out that any application running as a user that can run sudo, can just steal your sudo password. https://gist.github.com/lrvick/b0f4b744ab277582b1f9c50e0eb87e9e#file-gistfile1-txt-L24 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.
- j0057 4y agoYes, it took me some thinking but it's the conclusion I arrived at as well; the password is useless because as soon as somebody or something can run a bad process it's game over, first of all because all the files I really care about are owned by and writeable by me, and secondly because the bad process can just mess with .bashrc and get root access later. About the only benefit I could think of is slowing down an opportunistic attacker that finds my device unlocked, but even that could be game over with a quick `curl ... | bash` if the attacker is prepared enough. 'Security theater' was my conclusion as well, and I was surprised by it, why is everybody doing this?
- CGamesPlay 4y agoWhat was the point of this post? No, this program isn't a replacement for sudo; it's closer to a reimplementation of su. The post links to 3 CVEs and talks about Rust, but only one of the CVEs was a memory safety bug, the others are a logic error and a race condition, neither of which are protected by Rust (sadly).
- skcusgnad 4y ago[dead]
- bobbylarrybobby 4y agoI thought safe rust did prevent race conditions by preventing simultaneous write access to data except behind a Mutex or similar guard.
- CGamesPlay 4y agoThat's a memory safety issue that caused by a race condition. Rust prevents memory safety issues, but not race conditions. The race condition in one of the CVEs is in the filesystem, not in sudo.
- bobbylarrybobby 4y agoAh, thanks
- eptcyka 4y agoRust does prevent memory race conditions, but of course, only within the address space of the process and only for memory read and written to exclusively by rust code.
- progval 4y agoFor example, there is this (pure safe Rust) code: https://github.com/ben0x539/totally-safe-transmute/blob/main/src/lib.rs https://github.com/ben0x539/totally-safe-transmute/blob/main... which accesses external resources (/proc/self/mem) in order to violate the safety guarantees.
- yewenjie 4y agoSo emojis are allowed in HN titles but not in comments?
- Vecr 4y agoI think there's a security problem with this command. The command does not verify it's called as [xn--ts9h], it really needs to verify args[0] equals the name of the command, otherwise you could call it though a link or mapping, etc. The article states that the name is important for security, so I'm submitting this bug as critical.
- xena 4y agohttps://github.com/Xe/xn--ts9h/commit/861f8fa86ef58cdc371b0eaeb71e921cef6e9235 https://github.com/Xe/xn--ts9h/commit/861f8fa86ef58cdc371b0e... I will make a new set of packages tomorrow because I am tired
- tracnar 4y agoLinux surprisingly allows you to exec a program with argc == 0, so you also want to check for that... https://lwn.net/Articles/882799/ https://lwn.net/Articles/882799/
- fsckboy 4y agoi don't like sudo, but I feel no need to replace it. I type "sudo su -" and I'm good to go.
- still_grokking 4y agoI just open a root shell with `sudo -i` when I need to do some admin stuff… But that's not the point. 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.
- rouxz 4y ago[flagged]
- Comma2976 4y ago[flagged]
- 0xbeefeed 4y ago[flagged]
- bollos 4y agoL bozo
- xg15 4y agoTIL: HN strips emojis from the comments but it does allow then in submission titles...
- detaro 4y agoit doesn't, dang edited it back in here
- deleted 4y ago[deleted]
- cp9 4y agoThe Joke Understanders have logged on
- ThinkBeat 4y agoIs this not so microaggression really necessary at the top of every post? it sounds rude and it is not an efficient way of communicating the relevant information. >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/christine_dodrill_incredibly_based_nb_programmer/ 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/article.htm 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-identity#fa-qs 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 ?
- xena 4y agoHi, author of the site here. 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.
- RadiozRadioz 4y ago