Questions tagged [policykit]
17 questions
30
votes
4 answers
How do I prevent virt-manager from asking for the root password?
When starting virt-manager, it asks for the root password.
It looks like virt-manager causes the libvirtd daemon to run pkcheck with a couple of arguments, which then shows this authentication dialog. So it's PolicyKit who's asking for the root…
basic6
- 2,837
12
votes
2 answers
Can't unlock system settings (such as network settings) to edit in xubuntu
I can't change any settings nor install anything using the xfce GUI on my xubuntu 14.04. Some setting-windows have that unlock button you usually click to enter your password to gain root privileges, but nothing happens if I click on them:
When…
wullxz
- 2,876
3
votes
1 answer
polkit auth_admin_keep setting doesn't remember authorization?
Today, after I entered the password for the service shutdown/start process with systemctl, I wanted to set it to not ask for permission for 5-10 minutes. That's why when I entered the policy settings, I saw that it was already set to…
Faith
- 31
3
votes
1 answer
Allow non-privileged user to do systemd-inhibit
I have script running from non-privileged user. It is important, so systemd-inhibit is a good idea. But I get error when trying to inhibit from that user
systemd-inhibit sleep 10
Failed to inhibit: Access denied
This user not so trusted to put him…
avi9526
- 143
- 1
- 5
3
votes
1 answer
Ubuntu "Failed to restart polkitd.service: Unit polkitd.service not found."
I've been trying to get hibernate working on a fresh install of Ubuntu 18.04 LTS.
It works beautifully using sudo pm-hibernate from command-line.
I followed instructions to give me a menu option by creating the file…
Stewart
- 518
3
votes
0 answers
PolicyKit password timeout
I'm looking for a configuration option in PolicyKit that allows me to extend the time that needs to pass for a password to be requested again, in a similar way you can with sudo.
Looking at the polkit manual I could see that one can use…
DanielM
- 131
1
vote
0 answers
Fedora 33 polkit ignoring org.freedesktop.login1.reboot rules
I have set the following Polkit rule to prevent users from rebooting my Fedora 33 machine using Gnome:
polkit.addRule(function(action, subject) {
if ( ( action.id == "org.freedesktop.login1.reboot" ) ||
( action.id ==…
Lord_Rafa
- 11
- 3
1
vote
1 answer
GDBus error authentication agent already exists on Raspberry Pi
I am running VNCserver on a Raspberry Pi.
When logging in remotely, I get following error:
GDBus.Error:or.freedesktop.PolicyKit1.Error.Failed: An authentication
agent already exists for the given subject
When I connect a screen directly, I don't…
Dirk Osstyn
- 11
1
vote
0 answers
No authentication agent found for pkexec
I have an Ubuntu 16.04 headless system that I recently installed xfce4 and vnc4server onto. I can connect via VNC and see the desktop, but trying to launch privileged apps such as Synaptic silently fails.
Checking the synaptic.desktop entry shows…
Hamy
- 225
1
vote
0 answers
Can't start services, probably policykit error
I can't restart services as root on CentOS.
Unable to register authentication agent: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.PolicyKit1 was not provided by any .service files
The polkit service isn't starting…
spraff
- 2,458
1
vote
0 answers
Linux Fedora run Firefox via pkexec sound issue
I would like to setup my Fedora Linux install so that I have control over outgoing traffic on a per application basis. In order to achieve this I have setup an firewall policy to drop everything from my default user account (the one I use to…
matt101
- 13
0
votes
2 answers
polkit rules to prevent shutdown / reboot does not work
I am trying to prevent reboot a Debian 11 machine from the KDE start menu. However the following policy does not work:
[michael@vps /etc/polkit-1/rules.d]> cat /etc/polkit-1/rules.d/10-admin-shutdown-reboot.rules
polkit.addRule(function(action,…
Michael Tsang
- 360
0
votes
0 answers
How to modify/extend USB device access permissions in Debian?
I have a PC with Debian 10. I need the USB drives to have broader permissions than those given by default by the system.
I will give an example: with the user "john" being authenticated, when a USB memory is detected, the directory "/media/john/" is…
Gustavo
- 1
0
votes
1 answer
Arch/Plasma - PolicyKit window not opening for Virtual Machine Manager;
I'm relatively new to linux and I have using Arch linux as the host for some virtual machines for some time now. I don't know what triggered it, but lately 90% of the times I boot and open the Virtual Machine Manager window, the PolicyKit window…
his dudeness
- 131
0
votes
0 answers
Ubuntu 20.04 desktop too many polkit prompts - Authentication required
I recently upgraded from Ubuntu 18.04 to Ubuntu 20.04 Desktop. After the upgrade, am receiving way too many pol kit prompts. Its just outrageous. One for sleep, one for poweroff, selecting wifi network, scanning wifi network (every 10 secs),…
Andrews
- 119
- 1
- 3