Reading these questions and answers:
brought me another one that will create problems for new users of that command:
- How to configure
pkexec
for 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
pkexec
to avoid getting this? Similar to howsudo
/gksu
behave 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
pkexec
usage (Policy Kit)?