• Pippipartner
    link
    fedilink
    arrow-up
    4
    arrow-down
    1
    ·
    4 hours ago

    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.