• dunz@feddit.nu
    link
    fedilink
    arrow-up
    11
    ·
    edit-2
    2 hours 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

      • Snot Flickerman@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        4
        ·
        edit-2
        2 hours 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)