Views:
1,200β
Votes: 2β
Tags:
permissions
password
gksu
policykit
visudo
Link:
π See Original Answer on Ask Ubuntu β§ π
URL:
https://askubuntu.com/q/887227
Title:
How to see what pkaction a software uses
ID:
/2017/02/25/How-to-see-what-pkaction-a-software-uses
Created:
February 25, 2017
Edited: April 13, 2017
Upload:
December 22, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
Ask Ubuntu has this answer ([How to configure pkexec to not ask for password?][1]) that is closer to what you need than the link you found earlier.
As a quick example to finding the application, Iβll illustrate using my own script. I wanted to replace gksu
which is being deprecated with pkexec
so I wrote a wrapper script called gsu.
I invoke gsu from the command line with:
[![gsu pkexec][2]][2]
Notice the Details drop down arrow. Click it and this is revealed:
[![gsu pkexec details][3]][3]
In my example the pkla is controlled by org.gnome.gedit. Iβll use that in the next example, which you would replace with your own:
[![gsu pexec authorities][4]][4]
If you want to run without password prompt you would set the following:
<allow_any>yes</allow_any>
<allow_inactive>yes</allow_inactive>
<allow_active>yes</allow_active>
On a personal note I donβt like repeatedly entering the password myself but will not change gedit
to never ask for password when changing root files using pkexec
. However I would like it to not repeatedly ask for password when running it many times in given session. You can do this with sudo
and you can extend the period from 10 minutes to 120 minutes as I have done on my system. I would like similar functionality for policy kits.
[1]: https://askubuntu.com/questions/383747/how-to-configure-pkexec-to-not-ask-for-password
[2]: https://pippim.github.io/assets/img/posts/2017/vMGDh.png
[3]: https://pippim.github.io/assets/img/posts/2017/Tn78X.png
[4]: https://pippim.github.io/assets/img/posts/2017/c1EWB.png