this post was submitted on 02 Feb 2025
277 points (97.9% liked)

linuxmemes

22228 readers
671 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 users for any reason. This includes using blanket terms, like "every user of thing".
  • Don't get baited into back-and-forth insults. We are not animals.
  • 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, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
  • 5. πŸ‡¬πŸ‡§ Language/язык/Sprache
  • This is primarily an English-speaking community. πŸ‡¬πŸ‡§πŸ‡¦πŸ‡ΊπŸ‡ΊπŸ‡Έ
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
  • Β 

    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 remove France.

    founded 2 years ago
    MODERATORS
    top 50 comments
    sorted by: hot top controversial new old
    [–] [email protected] 122 points 3 days ago (1 children)

    So can you run sudo rm -rf C: to remove the malware now?

    [–] [email protected] 37 points 3 days ago (1 children)

    No you can't do that with administrator in windows.

    Some things, windows just won't let you do, even as an administrator.

    [–] [email protected] 5 points 2 days ago* (last edited 2 days ago) (2 children)

    which is good, to be clear

    no user should be able to accidentally brick their entire system just because some internet troll told them to type some magic words :P massive security flaw

    [–] [email protected] 1 points 13 minutes ago

    *remove the french language pack ^^

    [–] [email protected] 3 points 1 day ago (1 children)

    The Unix Haters Handbook was so real for that rm rant.

    [–] [email protected] 2 points 1 day ago
    [–] [email protected] 31 points 2 days ago (1 children)

    look what they have to do to mimic a fraction of our power

    [–] [email protected] 6 points 2 days ago

    That's immediately what came to mind when I saw it

    [–] [email protected] 25 points 2 days ago (1 children)

    no, microsoft. the linux cli tools are good but thats not the main reason why we ditched you.

    [–] [email protected] 4 points 2 days ago

    Definitely not due to the lack of sudo.

    [–] [email protected] 44 points 3 days ago (4 children)

    Wsl, sudo ... Maybe step by step windows will turn into Linux. For sure it would be an unexpected way for Linux to conquer the desktop market

    [–] [email protected] 33 points 3 days ago (2 children)

    Hardcore Linux users would still not count it and would still wait for Linux on desktop to finally take off.

    Source: Linux has 6.73% share on desktop. Except 2.25 percent points are ChromeOS, which is not FOSS enough, so Linux only has 4.48% on desktop.

    [–] [email protected] 17 points 3 days ago* (last edited 3 days ago) (1 children)

    There is no such thing as "FOSS enough" or "not enough FOSS" it's either free/libre or it's not

    (and ChromeOS most definitely isn't)

    [–] [email protected] 15 points 3 days ago (2 children)

    That was kinda heavy sarcasm.

    load more comments (2 replies)
    [–] [email protected] 4 points 3 days ago (2 children)

    If I could replace the windows ui with gnome, I'd do it.

    [–] [email protected] 4 points 2 days ago

    ~~gnome~~ kde

    ftfy

    load more comments (1 replies)
    [–] [email protected] 7 points 2 days ago* (last edited 2 days ago)

    And don't forget the horrible practice of putting everything in ~/ because everyone loves cluttered home directories

    I tried the new Microsoft aishell on Windows 11 and the config is saved on ~\.aishell instead of %appdata%\\Microsoft\aishell

    WTF Microsoft you forgot that you're on windows?? Can you follow the guidelines that you decided?

    [–] [email protected] 8 points 2 days ago (2 children)

    at one point, microsoft will put all of their software into a VM and ship that on a linux platform. that will do.

    [–] [email protected] 7 points 2 days ago

    Do what Apple did - take the BSD kernel and build the userland on top of it. NT is fucked beyond repair, let it die.

    [–] [email protected] 3 points 2 days ago (1 children)

    They essentially would just need to develop their own Wine

    [–] [email protected] 4 points 2 days ago

    (in the tone of "I'd like a Pepsi" "Is Coke okay?")

    "is ~~Wine~~ Beer okay?"

    [–] [email protected] 3 points 2 days ago

    Maybe one day, the Windows UI will only be one of the many Linux window managers, and the rest of Windows will just be a compatibility layer.

    [–] [email protected] 50 points 3 days ago (2 children)

    Way to lazy to find a source but IIRC one of the Sudo devs said this was horrible because it's "like Sudo" but not 1:1 so people will make assumptions about it that will lead to security issues

    (Usually idc about security but for Sudo..)

    [–] [email protected] 66 points 3 days ago (2 children)

    Like that time they made their own Powershell imitation of curl? (before deciding it was an abomination and finally including stock curl, but not removing the old Powershell commandlet because of backwards compatibility so now curl and curl.exe are two different things and you'll want the latter)

    [–] [email protected] 44 points 3 days ago

    Yeah that sounds like Microsoft.

    [–] [email protected] 4 points 3 days ago

    Or renaming things for seemingly no reason.

    [–] [email protected] 15 points 3 days ago

    Which is frustrating because 99% of the time people just want a way to run a command as admin without relaunching cmd as an admin.

    [–] [email protected] 15 points 2 days ago
    [–] [email protected] 26 points 3 days ago (1 children)

    Shoudlnt this be "admdo" or something like that?

    [–] [email protected] 13 points 2 days ago (1 children)
    [–] [email protected] 2 points 2 days ago

    Is that where you get that black jedi to do it for you? Cause that sounds problematic.

    [–] [email protected] 11 points 2 days ago
    [–] [email protected] 7 points 2 days ago

    $ sudo usermod -l root susudio

    $ su susudio

    # ohh

    Don't do this, it summons an angry Phil

    [–] [email protected] 16 points 3 days ago

    They know they are losing a lot of the technical crowd...

    [–] [email protected] 22 points 3 days ago* (last edited 3 days ago)

    FYI this has already been a thing for a long while thanks to an open source third-party implementation, and also works on Windows 10. I use it all the time, it's very similar to Linux's and I've never had any issues so far. Not sure if Microsoft's official solution will be any different/better.

    https://github.com/gerardog/gsudo

    [–] [email protected] 15 points 3 days ago (1 children)
    [–] [email protected] 11 points 3 days ago (1 children)

    Don't need sudo to run clown

    [–] [email protected] 6 points 3 days ago (1 children)

    What does the "cl" stand for?

    load more comments (1 replies)
    [–] [email protected] 4 points 2 days ago

    audo - admin-user do

    [–] [email protected] 11 points 3 days ago (1 children)

    Is this just some sort of alias to "runas"?

    [–] [email protected] 5 points 3 days ago

    I believe so, yeah. I used to have a script that would start a local Cassandra service and that's what I had to use (because I didn't want my live-in session of cmd to be admin 24/7.

    [–] [email protected] 6 points 3 days ago (1 children)

    It feels like a potential security nightmare. If your desktop at work is compromised and you have your domain admin come over and take a look; they might decide not to elevate the whole session, exercising appropriate caution and protocol in doing so, but just wing it with a quick sudo !! because the previous command didn't go through.

    I don't quite remember if this works properly, but I think !! should expand to sudo "previous command" at least in bash.

    [–] [email protected] 4 points 2 days ago

    it uses the UAC flow so it’s closer to right click > run as administrator than runas, so you will be required to enter credentials in the UAC dialogue (not the terminal) unless you are using an admin account (which at any workplace taking security seriously you should not be)

    and in powershell it’s $$ to execute the previous command :)

    disclaimer: not an admin i just use these tools

    [–] [email protected] 6 points 3 days ago (1 children)
    [–] [email protected] 5 points 2 days ago (1 children)
    [–] [email protected] 1 points 2 days ago

    Now do rm /bin/rm

    [–] [email protected] 2 points 2 days ago (1 children)

    Ironically it already exists for Windows here and Microsoft didn't bother crediting any of it

    https://github.com/lukesampson/psutils

    [–] [email protected] 5 points 2 days ago

    it’s an entirely different implementation which is integrated into the windows system and settings itself not just a ps script. read the link in OP for more.

    load more comments
    view more: next β€Ί