What is the equivalent of gksudo in Kubuntu/KDE?

Solution 1:

The Kubuntu/KDE equivalent of gksudo is kdesudo. You can use this in the terminal or via the graphical command box on the top of the screen (Alt-F2).

When you do this, or otherwise launch an application which requires root privileges, you will get a kdesudo popup like this:

enter image description here

Note: If you are not getting this box with GUI applications, it may indicate a problem with the way the KDE desktop environment was installed. Please try reinstalling kubuntu-desktop if you are not using Kubuntu.

Solution 2:

Now it is kdesu,

Example, If I want to use Matlab, and I want to run it as sudo user then I would type in: kdesu matlab, which would open a GUI window for taking my password as input.

Solution 3:

As of Kubuntu 20.04, kdesudo doesn't seem to be installed by default, and kdesu is no longer in $PATH, but in /usr/lib/x86_64-linux-gnu/libexec/kf5/kdesu.