I found a (lengthy) guide to doing this but it is for gksu which is gone. I have to imagine there’s an easy way. I am running Ubuntu.

  • Skull giver@popplesburger.hilciferous.nl
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Any X window can control any other X window for sure, but I’m not sure why a malicious program would go through nautilus when they can just alias sudo in .bashrc. It’s not like Linux users tend to do regular virus scans anyway.

    Wayland does prevent this flaw, but it also makes running GUI programs as root kind of messy.