Johnnei's World
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Morph9@lemmy.zip to linuxmemes@lemmy.worldEnglish · 20 days ago

Sudo disbelief

lemmy.zip

external-link
message-square
86
link
fedilink
355
external-link

Sudo disbelief

lemmy.zip

Morph9@lemmy.zip to linuxmemes@lemmy.worldEnglish · 20 days ago
message-square
86
link
fedilink
alert-triangle
You must log in or # to comment.
  • nieceandtows@programming.dev
    link
    fedilink
    arrow-up
    69
    arrow-down
    2
    ·
    19 days ago

    Yeah I only use sudo once, for the su.

    • Hawke@lemmy.world
      link
      fedilink
      arrow-up
      43
      ·
      19 days ago

      … but why? “sudo -i” is a thing. Why get another program involved?

      • Snot Flickerman@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        23
        ·
        19 days ago

        Some people just want to watch the world burn.

      • exu@feditown.com
        link
        fedilink
        English
        arrow-up
        8
        ·
        19 days ago

        I don’t think many people know about this feature

      • CoyoteFacts@piefed.ca
        link
        fedilink
        English
        arrow-up
        7
        ·
        19 days ago

        Personally it’s because my fingers are already on “s” and “u”.

      • nieceandtows@programming.dev
        link
        fedilink
        arrow-up
        7
        arrow-down
        1
        ·
        19 days ago

        It’s easier to just call su once and run every single command as root rather than having to randomly use sudo for some commands and not for others (/s if it’s not obvious)

        • Hawke@lemmy.world
          link
          fedilink
          arrow-up
          5
          ·
          19 days ago

          But you can do that without involving ‘su’.

          • slothrop@lemmy.ca
            link
            fedilink
            English
            arrow-up
            7
            ·
            edit-2
            19 days ago

            I don’t use sudo.
            Ever.
            It’s disabled by default in slackware, and I don’t know why it’s even there.

          • nieceandtows@programming.dev
            link
            fedilink
            arrow-up
            5
            arrow-down
            1
            ·
            19 days ago

            Tell me how you can run rm rf / no preserve root without su, I’m waiting.

            • Hawke@lemmy.world
              link
              fedilink
              arrow-up
              12
              ·
              19 days ago

              Is this some kind of joke going over my head or something?

              Run “sudo -i” then run “rm -rf --no-preserve-root”

              • nieceandtows@programming.dev
                link
                fedilink
                arrow-up
                4
                ·
                19 days ago

                Yeah I’m just joking around. I pretty much never use su except in rare cases

    • caseyweederman@lemmy.ca
      link
      fedilink
      arrow-up
      6
      ·
      19 days ago

      Straight to jail.

    • stupidcasey@lemmy.world
      link
      fedilink
      arrow-up
      3
      ·
      19 days ago

      I just delete every user but root.

    • MonkderVierte@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      19 days ago

      I’ve seen that piece, mostly in beginner instructions, for a root shell. But does it even make sense? Why run a elevated su? Just run su.

      • nieceandtows@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        18 days ago

        I think some distros don’t expose or create a root password and make you do sudo su. I might be wrong.

  • Snot Flickerman@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    52
    ·
    20 days ago

    Shut the front door!


    In a lot of situations it’s actually bad to use sudo because it can impact settings that make programs or file ownership go to root instead of the user.

    • exu@feditown.com
      link
      fedilink
      English
      arrow-up
      11
      ·
      19 days ago

      sudo -i -u user -s /usr/bin/bash

  • Samsy@lemmy.ml
    link
    fedilink
    arrow-up
    41
    arrow-down
    1
    ·
    19 days ago

    But rm -fr / * seems not to work for removing the French language pack. Can someone confirm if it works with sudo?

    • eatham 🇦🇺@aussie.zone
      link
      fedilink
      English
      arrow-up
      25
      ·
      19 days ago

      Works fine with sudo, removes all the French bloat.

      • wltr@discuss.tchncs.de
        link
        fedilink
        arrow-up
        13
        ·
        19 days ago

        I see French bloated my system to the fullest!

        • Samsy@lemmy.ml
          link
          fedilink
          arrow-up
          13
          ·
          19 days ago

          Glad you fixed it. Don’t forget to reboot.

    • plateee@piefed.social
      link
      fedilink
      English
      arrow-up
      17
      ·
      19 days ago

      Ah, I see your problem, you need to add --no-preserve-root.

      See the French are super into wine - and grape vines are notoriously hard to get rid of, so if you want to really get rid of the French language pack, you need to rip that grapevine out by the root (e.g. don’t preserve the root). Otherwise, the French language pack will just grow back harder and Frenchier than before.

      Sacrebleu!

      • Samsy@lemmy.ml
        link
        fedilink
        arrow-up
        4
        ·
        19 days ago

        Mondieu!

        How could I have forgotten that?

  • TomMasz@piefed.social
    link
    fedilink
    English
    arrow-up
    35
    ·
    19 days ago

    How else will the OS know I’m serious ?

    • lost_faith@lemmy.ca
      link
      fedilink
      arrow-up
      9
      ·
      19 days ago

      “Yes, Do as I say!”

  • varnia@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    21
    arrow-down
    1
    ·
    19 days ago

    Oh, you mean better use doas everywhere? Got it.

  • Ricky Rigatoni@retrolemmy.com
    link
    fedilink
    arrow-up
    19
    ·
    19 days ago

    sudon’t tell me what to do

    • phaedrus@piefed.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      19 days ago

      su:

      crying cat giving thumbs up

  • SilentObserver@lemmy.world
    link
    fedilink
    arrow-up
    18
    ·
    19 days ago

    Don’t need sudo if you’re always root.

    Now excuse me. I need to call the bank and find out why my checking account is suddenly $0.

    • shane@feddit.nl
      link
      fedilink
      arrow-up
      4
      ·
      19 days ago

      And yet half the time when I’m root I preface with sudo. I can’t stop myself!

  • blaue_Fledermaus@olio.cafe
    link
    fedilink
    English
    arrow-up
    17
    ·
    19 days ago

    IMO the “year of the Linux desktop” will come when distros are designed for people who shouldn’t even be allowed to use sudo.

    • WFH@lemmy.zip
      link
      fedilink
      arrow-up
      18
      ·
      edit-2
      19 days ago

      Let me introduce you to atomic distros.

      I moved my father on Bluefin 1.5 years ago from his antique MacBook Air. He doesn’t know sudo exists. He has never heard of ujust. He doesn’t even command line. He hasn’t had to do a single update because it all happens in the background. He just… uses it.

      • Skullgrid@lemmy.world
        link
        fedilink
        arrow-up
        4
        ·
        19 days ago

        doesn’t even have to be atomic, I rescued my wife’s shit laptop using Ubuntu Mate (snaps booing in background) and she has never seen the command line unless I open it. It’s been like that for over a year at least.

        • WFH@lemmy.zip
          link
          fedilink
          arrow-up
          6
          ·
          edit-2
          19 days ago

          Yes, but contrary to atomic distros, it’s not explicitely designed to be as administration free as possible.

  • dream_weasel@sh.itjust.works
    link
    fedilink
    arrow-up
    16
    ·
    19 days ago

    sudo man sudo

  • Kristell@herbicide.fallcounty.omg.lol
    link
    fedilink
    arrow-up
    15
    ·
    19 days ago

    I mean, yeah, it’s your computer. Just login on the root account, nothing bad ever comes of that, not even once, nope.

    • SpikesOtherDog@ani.social
      link
      fedilink
      English
      arrow-up
      2
      ·
      19 days ago

      It’s a lesson many of us learn the hard way.

  • FancyPantsFIRE@lemmy.world
    link
    fedilink
    English
    arrow-up
    16
    arrow-down
    1
    ·
    19 days ago

  • commie@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    15
    arrow-down
    1
    ·
    19 days ago

    sudo bash

    • wiccan2@lemmy.world
      link
      fedilink
      arrow-up
      13
      ·
      19 days ago

      sudo -i

      • commie@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        3
        ·
        19 days ago

        ooo what’s that one do?

        • Hawke@lemmy.world
          link
          fedilink
          arrow-up
          11
          ·
          19 days ago

          Starts an interactive session as root (or another user when combined with -u)

          • Oisteink@lemmy.world
            link
            fedilink
            arrow-up
            4
            ·
            19 days ago

            It provides a login shell - like

            su -
            

            So you get the full environment from that user

            • Hawke@lemmy.world
              link
              fedilink
              arrow-up
              1
              ·
              19 days ago

              …Yes, I know.

              • sem@piefed.blahaj.zone
                link
                fedilink
                English
                arrow-up
                1
                arrow-down
                1
                ·
                19 days ago

                Not everything is all about you, dude.

        • rem26_art@fedia.io
          link
          fedilink
          arrow-up
          4
          ·
          19 days ago

          sudo -i starts a login shell as the specified user. Login shell means it’ll read that user’s bashrc/zshrc/whatever other login files and apply those. If no user is specified, then it’ll login as root, so you get a root shell

        • mumblerfish@lemmy.world
          link
          fedilink
          arrow-up
          3
          ·
          19 days ago

          Gives you a shell where you basically are sudo for every command.

  • Steamymoomilk@sh.itjust.works
    link
    fedilink
    arrow-up
    12
    ·
    19 days ago

    Sudo !!

    👌👌👌 perfection

    • Atomilehma@sopuli.xyz
      link
      fedilink
      arrow-up
      2
      ·
      19 days ago

      I came here to look for this.

    • Allero@lemmy.today
      link
      fedilink
      arrow-up
      1
      ·
      19 days ago

      So for all that time one could do THIS?

  • Diplomjodler@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    19 days ago

    Pfft. Real men always log in as root.

    • kill_dash_nine@lemmy.zip
      link
      fedilink
      arrow-up
      1
      ·
      19 days ago

      You got that right. https://www.garyshood.com/root/

  • BeatTakeshi@lemmy.world
    link
    fedilink
    arrow-up
    10
    ·
    19 days ago

linuxmemes@lemmy.world

linuxmemes@lemmy.world

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
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.
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, no politics, no trolling or ragebaiting.
  • Don’t come looking for advice, this is not the right community.
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.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

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.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.05K users / day
  • 5.01K users / week
  • 8K users / month
  • 16.6K users / 6 months
  • 1 local subscriber
  • 29.5K subscribers
  • 1.46K Posts
  • 45.9K Comments
  • Modlog
  • mods:
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • UI: 0.19.13
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org