top 85 comments

sorted by: hot top controversial new old
[–] 52 points 9 months ago* (1 child)

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.

  • source
  • hideshow 1 child comment
  • [–] 35 points 9 months ago* (1 child)

    How else will the OS know I'm serious ?

  • source
  • hideshow 1 child comment
  • [–] 67 points 9 months ago (14 children)

    Yeah I only use sudo once, for the su.

  • source
  • hideshow 14 child comments
  • [–] 43 points 9 months ago (9 children)

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

  • source
  • parent
  • hideshow 9 child comments
  • [–] 6 points 9 months ago (5 children)

    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)

  • source
  • parent
  • hideshow 5 child comments
  • [–] 5 points 9 months ago (4 children)

    But you can do that without involving β€˜su’.

  • source
  • parent
  • hideshow 4 child comments
  • [–] 4 points 9 months ago (2 children)

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

  • source
  • parent
  • hideshow 2 child comments
  • [–] 41 points 9 months ago (5 children)

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

  • source
  • hideshow 5 child comments
  • [–] 17 points 9 months ago (1 child)

    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!

  • source
  • parent
  • hideshow 1 child comment
  • [–] 19 points 9 months ago (1 child)

    sudon't tell me what to do

  • source
  • hideshow 1 child comment
  • [–] 17 points 9 months ago (3 children)

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

  • source
  • hideshow 3 child comments
  • [–] 18 points 9 months ago* (last edited 9 months ago) (2 children)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 4 points 9 months ago (1 child)

    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.

  • source
  • parent
  • hideshow 1 child comment
  • [–] 18 points 9 months ago (1 child)

    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.

  • source
  • hideshow 1 child comment
  • [–] 16 points 9 months ago

    sudo man sudo

  • source
  • [–] 15 points 9 months ago (1 child)

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

  • source
  • hideshow 1 child comment
  • [–] 12 points 9 months ago (2 children)

    Sudo !!

    πŸ‘ŒπŸ‘ŒπŸ‘Œ perfection

  • source
  • hideshow 2 child comments
  • [–] 20 points 9 months ago

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

  • source
  • [–] 10 points 9 months ago (1 child)

    Pfft. Real men always log in as root.

  • source
  • hideshow 1 child comment
  • [–] 10 points 9 months ago
    [–] 15 points 9 months ago
    [–] 14 points 9 months ago (8 children)
  • [–] 13 points 9 months ago (7 children)
  • [–] 3 points 9 months ago (6 children)
  • [–] 11 points 9 months ago (3 children)

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

  • source
  • parent
  • hideshow 3 child comments
  • [–] 4 points 9 months 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

  • source
  • parent
  • [–] 7 points 9 months ago

    root@box ~# sudo fdisk -l

    spiderman pointing at spiderman

  • source
  • [–] 6 points 9 months ago

    Look at OP, claiming to have that mythical girlfriend who will make a sandwich without escalating privileges

  • source
  • [–] 6 points 9 months ago
    [–] 5 points 9 months ago

    sudo claude just fuck my shit up

  • source
  • [–] 5 points 9 months ago

    sudo dnf --help

  • source
  • [–] 4 points 9 months ago

    Just once.

    sudo -s

  • source
  • [–] 4 points 9 months ago

    Y'er a root, Harry!!

  • source
  • [–] 4 points 9 months ago

    Blasphemy!!!

  • source
  • [–] 4 points 9 months ago

    If you’re using sudo for Rm -r / You’re doing it wrong

  • source
  • [–] 5 points 9 months ago
    [–] 6 points 9 months ago (4 children)

    All you need is a single sudo su, correct.

  • source
  • hideshow 4 child comments
  • [–] 13 points 9 months ago (3 children)
    1. Turn on monitor.
    2. Sudo su
    3. Copying and pasting terminal commands I find off the Internet
    4. Living life to the fullest.
  • source
  • parent
  • hideshow 3 child comments
  • Right. Just put sudo su in your terminal on boot, and you're set.

  • source
  • [–] 3 points 9 months ago

    But how will I run that command I copied from some murky internet forum?

  • source
  • [–] 5 points 9 months ago (8 children)

    It's a nice precautionary measure

  • source
  • hideshow 8 child comments
  • [–] 17 points 9 months ago* (last edited 9 months ago) (7 children)

    It is indeed.

    For those unaware: sudo !! if your previous command failed because you forgot sudo.

  • source
  • parent
  • hideshow 7 child comments
  • [–] 7 points 9 months ago (5 children)

    Let's say I run something like rm a.txt && rm b.txt, will sudo !! work for both commands or just the first?

  • source
  • parent
  • hideshow 5 child comments
  • [–] 2 points 9 months ago

    You're right, just add Sudo -s to /etc/profile

  • source
  • [–] 2 points 9 months ago

    What if I told you I sudo as root

  • source
  • [–] 1 point 9 months ago

    I normally disable root, so I don’t think su would work. Never tried, so maybe I am using it wrong.

  • source
  • [–] 1 point 9 months ago

    Tell this to my cousin (though he probably does this to gaslight me).

  • source