There are two general ways to run applications graphically as root (or, more generally, as another user). Programs like gksu
, gksudo
, and kdesudo
are graphical frontends for sudo
. In contrast, pkexec
is a graphical frontend for PolicyKit.
When manually running programs as root (or as another, non-root user), what are the advantages/disadvantages (if any) of using pkexec
, compared to the more traditional method of using a sudo
frontend?
Best Answer
PolicyKit is more configurable, though
pkexec
doesn't make use of this configurability. Also,pkexec
show the user the full path of the program that will be started, to that the user is a bit more sure what will happen. The so-called 'policies` of PolicyKit can be used to set more advances settings. For example, whether the password should be remembered.Something I got from the
pkexec
manual:More information on policies or action definitions from the
pkexec
manual: