Questions tagged [policykit]

15 questions
29
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,587
  • 9
  • 33
  • 41
11
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,716
  • 4
  • 26
  • 38
3
votes
1 answer

Arch linux — 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
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
  • 425
  • 6
  • 16
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
  • 3
2
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
  • 133
  • 1
  • 4
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…
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
  • 14
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,106
  • 5
  • 37
  • 58
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
  • 3
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
  • 1
  • 3
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
0
votes
1 answer

passwordless pkexec to unprivileged user

For several reasons I want to run my browser as a different system user on my fedora box. For now I created a separate system user named sandbox and created a custom ~/.local/share/applications/chrome-sandboxed.desktop file for Google Chrome with my…
David
  • 155
  • 10
-1
votes
1 answer

How to Temporarily Suspend Security Policy Checks / Or Temporarily Grant Root Access?

Note: Please feel free to edit the question -- I am having a hard time expressing it! Question: How do you impersonate a regular user--while still retaining admin/root privileges to execute any command on behalf of that target user? A Mechanism…