this post was submitted on 21 Feb 2024
464 points (96.2% liked)

linuxmemes

21291 readers
1558 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.
  •  

    Please report posts and comments that break these rules!


    Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't fork-bomb your computer.

    founded 1 year ago
    MODERATORS
     
    top 48 comments
    sorted by: hot top controversial new old
    [–] everett@lemmy.ml 89 points 9 months ago (2 children)

    Windows doesn't have sudo, Windows has a thing they're calling sudo.

    [–] 0x4E4F@lemmy.dbzer0.com 41 points 9 months ago (2 children)

    It's basically runas, but then it pops up the UAC prompt and you have to give admin credentials 😒... runas is much easier, you give the creds in a command line, no windows poping up, nothing, it just works.

    [–] d_k_bo@feddit.de 14 points 8 months ago (1 children)

    It is a bit like pkexec which also brings up a graphical password prompt.

    [–] 0x4E4F@lemmy.dbzer0.com 8 points 8 months ago

    Exactly... which is NOT sudo.

    [–] xlash123@sh.itjust.works 6 points 8 months ago (1 children)

    That's an odd choice... If it was possible all along to just ask for a a password on the command line, why make it popup a UAC prompt? These are developers using it after all.

    [–] 0x4E4F@lemmy.dbzer0.com 10 points 8 months ago (1 children)

    Devs can and have used runas in the past, that's nothing new, and it does the job quite well. This new thing is just a fad if you ask me, "every OS on the planet has it and Linux is kinda getting traction, plus we're on team FOSS now and all that, so why not make our own version of sudo, but actually make it more complicated to use than runas 👍" 😒... I mean, they always do shit like this, take some good idea and turn it into crap, but everyone buys into the idea. Why? Cuz they're MS 😒.

    [–] kautau@lemmy.world 4 points 8 months ago (1 children)

    I mean yeah, but also passwordless auth is a good thing. Since it hooks into UAC it hooks into windows hello which can be biometric.

    [–] 0x4E4F@lemmy.dbzer0.com 2 points 8 months ago

    You can do that in Linux too, that's nothing new, been around for at least 10 years or so.

    [–] cupcakezealot@lemmy.blahaj.zone 5 points 8 months ago (1 children)
    [–] everett@lemmy.ml 1 points 8 months ago

    I don't understand what you're trying to say here. (I wasn't the one who downvoted you, by the way.)

    [–] rtxn@lemmy.world 50 points 8 months ago (1 children)
    [–] 0x4E4F@lemmy.dbzer0.com 15 points 8 months ago* (last edited 8 months ago)

    Not only the prompt, but also the credentials screen... i mean... how stupid can you get 🤦. You can't pass the credentials in cmd 🤣🤣🤣 and you made THIS command to be used it 🤣 🤦.

    They have it! It's OK, it's usable, it's called runas, but no, we wanna copy stuff from POSIX OSes 🤪 drrrrrrr...

    [–] spujb@lemmy.cafe 37 points 8 months ago (7 children)

    linux users when the windows sudo replica still values user security and uses uac and doesn’t just let you make changes to core system files because you happened to know a four letter command 👿👿👿👿

    [–] Rubanski@lemm.ee 25 points 8 months ago

    Delete the French language pack!

    [–] AMDIsOurLord@lemmy.ml 25 points 8 months ago (1 children)

    Linux and Unices assume you know what you're doing

    Windows assumes that the user has the mental prowess and knowledge of a 5 year old

    Both can result in disaster, in glorious ways

    [–] spujb@lemmy.cafe 9 points 8 months ago (2 children)

    hate this take. can we stop calling normal, non-techie people idiots?

    it’s like saying the safety on a gun was designed for babies and makes the FOSS community look toxic as fuck.

    [–] AProfessional@lemmy.world 8 points 8 months ago (1 children)

    The first sentence is right, but not because of intelligence (agreed toxic).

    The money that goes into Linux is for corporate use by administrators. Very little money makes end user facing tools. I think given that fact the Linux desktop is an amazing result of the work of a lot of volunteers.

    [–] spujb@lemmy.cafe 2 points 8 months ago
    [–] Cassa@lemmy.blahaj.zone 0 points 8 months ago (1 children)

    the results of a gun mishap is quite different from a personal computer mishap...

    [–] spujb@lemmy.cafe 1 points 8 months ago

    so is this the first time you have encountered a simile or did you want me to spell it out for you 😂😂

    [–] areyouevenreal@lemm.ee 15 points 8 months ago* (last edited 8 months ago) (1 children)

    UAC is no different from having a sudo password. They both have security measures. Sudo actually has fairly granular permissions if you can be bothered to set them up.

    Windows still allows you to modify system files it's just more difficult. If you want a Linux system that doesn't let you do that those exist too, they are called immutable linux distros.

    [–] AProfessional@lemmy.world 17 points 8 months ago* (last edited 8 months ago)

    Windows does contain DRM protected files that it will not allow you to touch. Some games on the Microsoft Store for example.

    Not to counter your point, just that I find it insane.

    [–] kogasa@programming.dev 12 points 8 months ago

    This incident will be reported

    [–] Adanisi@lemmy.zip 6 points 8 months ago* (last edited 8 months ago)

    A four letter command, correct privileges and a password?

    [–] cupcakezealot@lemmy.blahaj.zone 4 points 8 months ago (1 children)

    kinda like when you can password a windows 98 account that can be avoided by simply pressing cancel

    [–] spujb@lemmy.cafe 2 points 8 months ago

    those were fun times but how is that at all similar lmao

    [–] mlg@lemmy.world 4 points 8 months ago (1 children)

    Real gamers know the way to power on windows is though NT AUTHORITY\SYSTEM

    [–] 0x4E4F@lemmy.dbzer0.com 2 points 8 months ago

    You can't use that as an account though.

    [–] vala@lemmy.world 23 points 9 months ago

    For those out of the loop like I was:

    Sudo for Windows is a new way for users to run elevated commands directly from an unelevated console session.

    https://devblogs.microsoft.com/commandline/introducing-sudo-for-windows/

    [–] BurnSquirrel@lemmy.world 13 points 8 months ago

    Sudo for linux skips leg day

    [–] beefbaby182@lemmy.world 12 points 8 months ago

    Nothing will ever replace the all-powerful SUDO no matter how hard Microsoft tries.

    [–] cm0002@lemmy.world 12 points 9 months ago (1 children)

    sudo on MacOS also fits the top panel lmao

    [–] eager_eagle@lemmy.world 18 points 9 months ago* (last edited 9 months ago) (1 children)

    I can't express my disappointment trying to do some things on mac, via ssh as superuser, only to find out I needed to be there in person to reboot in fucking recovery mode.

    [–] cm0002@lemmy.world 12 points 9 months ago (1 children)

    Yup, oh but don't worry it's all in the name of "Privacy and Security!!"/s

    Personal theory is Apple is slowly getting people used to a PC being a walled garden as much as a phone. They've already stripped the hardware of all upgradability in the name of "performance" and now they're working on the software side in the name of "Privacy and Security"

    [–] eager_eagle@lemmy.world 5 points 9 months ago

    as with many political decisions: nothing but greedy choices masqueraded by honorable reasons

    [–] aggelalex@lemmy.world 5 points 8 months ago

    There's gsudo

    [–] ordellrb@lemmy.world 4 points 8 months ago (1 children)
    [–] 0x4E4F@lemmy.dbzer0.com 4 points 8 months ago* (last edited 8 months ago)

    Because they wanna copy the cool kids. Just look at Win11 and say that's not a KDE/GNOME ripoff... though the removal of settings thing, looks more like GNOME.

    [–] Ascend910@lemmy.ml 1 points 8 months ago (1 children)

    But actually what does Sudo do? Everyone using windows just default to running everything in administrator when something is not working as intended

    [–] 0x4E4F@lemmy.dbzer0.com 2 points 8 months ago

    Sudo has an even higher authority than what an admin is in Windows. In Windows, you can't (easily) run something as the highest authority there is, SYSTEM. In Linux, that is easily doable with sudo.

    So basically, the sudo in Windows is a joke, because it just runs things as admin... and that was already doable with runas in cmd, if you provide administrator credentials of course. The trouble is, with sudo in windows, another prompt shows up, which is basically the "give admin credentials" prompt (the UAC one as well, if you don't have that one disabled). They could have at least coded it so that it doesn't act like pkexec and ask you for credentials in a separate prompt, but ask you for creds in the same cmd window, which is what Linux does when you type in sudo (asks you for the root password, but doesn't open a second prompt, as expected). They could have done that, but no, they decided to complicate things. Why? Beats me, have no idea.

    So, other than being not a true sudo as in POSIX OSes, it complicates things even more by adding at least one other prompt. They already had a prefectly good tool for that, runas. You just pass the creds in the same command and it runs the command with those creds, simple and elegant. But, they wanted to copy POSIX OSes and came up with a shitshow of prompts and the whole world laughing at their "sudo" which is nothing more than "run as admin", which, as I said earlier, is nothing like what sudo is POSIX OSes.

    [–] mvirts@lemmy.world -4 points 9 months ago (1 children)

    on linux it's soodough, on windows its soodoo

    [–] techt@lemmy.world 3 points 9 months ago (3 children)

    Maybe I'm missing the joke here, but it's the latter on Linux. Super User Do = soodoo. Not sure why it'd be different for either platform.

    [–] baggins@lemmy.ca 9 points 8 months ago (1 children)

    Soo dough gang checking in 😎

    [–] techt@lemmy.world 2 points 8 months ago (1 children)

    Okay gang, when you come across a TODO, how do you pronounce that? Too dough?

    [–] GiantRobotTRex@lemmy.sdf.org 3 points 8 months ago (1 children)
    [–] techt@lemmy.world 3 points 8 months ago

    Oh cool, I'll just go beat my head in-tow a wall

    [–] mvirts@lemmy.world 3 points 8 months ago

    Its the lowest of the low: a poop joke comparing windows sudo to doodoo 🙃

    [–] Nekomancer@lemmy.world 1 points 8 months ago

    It's a bit pedantic, but it's " substitute user and do" it's doesn't need to be root, that is just most commonly used