Section: KDE User's Manual (1)
Return to Main Contents
kdesu - Runs a program with elevated privileges
kdesu [-c command] [-d] [-f file] [-i icon name] [-n] [-p priority] [-r] [-s] [-t] [-u user] [--noignorebutton] [--attach winid]
kdesu [KDE Generic Options] [Qt Generic Options]
is a graphical front end for the
command for the K Desktop Environment. It allows you to run a program as different user by supplying the password for that user.
is an unprivileged program; it uses the system's
has one additional feature: it can optionally remember passwords for you. If you are using this feature, you only need to enter the password once for each command.
This program is meant to be started from the command line or from
is no longer installed in
$(kde4-config --prefix)/bin but in
kde4-config --path libexec
and therefore not in your
Path, you have to use
$(kde4-config --path libexec)kdesu
This specifies the command to run as root. It has to be passed in one argument. So if, for example, you want to start a new file manager, you would enter at the prompt:
$(kde4-config --path libexec)kdesu -c Dolphin
Show debug information.
This option allow efficient use of
files. It tells
to examine the file specified by
file. If this file is writable by the current user,
will execute the command as the current user. If it is not writable, the command is executed as user
(defaults to root).
is evaluated like this: if
starts with a
/, it is taken as an absolute filename. Otherwise, it is taken as the name of a global
-i icon name
Specify icon to use in the password dialog. You may specify just the name, without any extension.
Do not keep the password. This disables the
checkbox in the password dialog.
Set priority value. The priority is an arbitrary number between 0 and 100, where 100 means highest priority, and 0 means lowest. The default is 50.
Use realtime scheduling.
Stop the kdesu daemon. This is the daemon that caches successful passwords in the background. This feature may also be disabled with
is initially run.
Enable terminal output. This disables password keeping. This is largely for debugging purposes; if you want to run a console mode app, use the standard
While the most common use for
is to run a command as the superuser, you can supply any user name and the appropriate password.
Do not display an ignore button.
Makes the dialog transient for an X app specified by winid.
More detailed user documentation is available from
(either enter this
Konqueror, or run
jim, and show the
icon in the password dialog:
$(kde4-config --path libexec)kdesu -u jim -i konqueror kfmclient
was written by
Lauri Watts <firstname.lastname@example.org>
- SEE ALSO