Usage of KDE su is easy. The syntax is like this:
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]
The command line options are explained below.
-ccommandThis 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:
$(kf5-config --path libexec)kdesu-cDolphin-dShow debug information.
-ffileThis option allow efficient use of KDE su in
.desktopfiles. It tells KDE su to examine the file specified byfile. If this file is writable by the current user, KDE su will execute the command as the current user. If it is not writable, the command is executed as useruser(defaults to root).fileis evaluated like this: iffilestarts with a/, it is taken as an absolute filename. Otherwise, it is taken as the name of a global KDE configuration file.-iicon nameSpecify icon to use in the password dialog. You may specify just the name, without any extension.
For instance to run Konqueror in filemanager mode and show the Konqueror icon in the password dialog:
$(kf5-config --path libexec)kdesu-i konqueror-c "konqueror --profile filemanagement"-nDo not keep the password. This disables the keep password checkbox in the password dialog.
-pprioritySet 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.
-rUse realtime scheduling.
-sStop the kdesu daemon. See the section called “Password Keeping”.
-tEnable terminal output. This disables password keeping. This is largely for debugging purposes; if you want to run a console mode app, use the standard su instead.
-uuserWhile the most common use for KDE su is to run a command as the superuser, you can supply any user name and the appropriate password.