In regular Ubuntu (Unity/Gnome), I use gksudo
to run GUI programs with root privileges. I'm trying out Kubuntu (or KDE) now -- what do I use?

- 139,926
3 Answers
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:
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.

- 139,926
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
.
As of Fedora 38, kdesu
is in path. The "root" password it requires is the actual password for root
, not your user's sudo password. You can change the root password with sudo passwd root
.

- 3,838
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.
-
1For whatever reason in Kubuntu bionic beaver the command wasn't added to the path, but I can run it from
/usr/lib/kde4/libexec/kdesu
– Adam Plocher Aug 20 '18 at 02:34 -
@Looserof7 Since
su
andsudo
are both command-line apps, I would imagine thatkedsu
andkdesudo
both exist. – jpaugh Dec 04 '18 at 17:37
kdesudo
command before. – Exeleration-G Jul 20 '12 at 23:55