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.

  • uzay@infosec.pub
    link
    fedilink
    arrow-up
    12
    ·
    9 months ago

    It is rare that you would want to run an entire GUI program as root, and if it is needed, the program should prompt you for it. Do you have a specific use case where you need to do that regularly?

    • Jediwan@lemy.lolOP
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      9 months ago

      Not regularly, but the most common use I’ve encountered is text files used in various configurations.

      • uzay@infosec.pub
        link
        fedilink
        arrow-up
        4
        ·
        9 months ago

        Not necessarily a satisfactory solution for you, but the usual way to handle that is just using a text editor in the shell with sudo, like nano or vim. It’s pretty fast and easy once you get used to it. I don’t know if there are any good graphical ways of doing it.