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. There is no specific use case, it is just a feature I miss from windows.

  • bizdelnick@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    9 months ago

    Nope. Running GUI as root in the same X server as unprivileged apps is insecure because each of them can take control over privileged window. IDK if this issue has been addressed in Wayland, but anyway there are no wayland-only distros nowadays.

    • Skull giver@popplesburger.hilciferous.nl
      link
      fedilink
      arrow-up
      3
      ·
      9 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.