• @dunz@feddit.nu
    link
    fedilink
    16
    edit-2
    14 days ago

    Use sudo -i instead, gives you an interactive shell without running the su binary with sudo, which is unnecessary

    Edit: it’s i not I

    • Endymion_Mallorn
      link
      fedilink
      214 days ago

      Thank you, that’s a switch I hadn’t looked at. I’ll admit though, I’m on Mint, I have a nice built-in GUI that works nicely.

      • Snot Flickerman
        link
        fedilink
        English
        4
        edit-2
        14 days ago

        It’s a really important switch for doing things like setting up wireguard, which has protected directories, you can’t actually enter the directory for wireguard setup without sudo -i

        (I mean technically you probably can with sudo su, too, but this is more elegant and less redundant)