Reading these questions and answers:
brought me another one that will create problems for new users of that command:
- How to configure
pkexecfor easy usage?
For example when doing the following:
(Opening a file in terminal)
pkexec nano /etc/mysql/my.cnf
(Opening a file in GUI)
pkexec gedit /etc/mysql/my.cnf
The last one gets the following error:
pkexec must be setuid root
Now this brought me the following questions:
How to configure
pkexecto avoid getting this? Similar to how
gksubehave when doing the same thing (they only ask for the password).
If applicable, how to tell it to not ask for a password after the first time applying it to a command (or including the first command if configurable)?
Where to save the configuration file if not yet existing?
Is there a GUI app to configure
pkexecusage (Policy Kit)?