Polkit (formerly PolicyKit) is a component for controlling system-wide privileges in Unix-like operating systems.
Questions tagged [polkit]
116 questions
164
votes
3 answers
The name > org.freedesktop.PolicyKit1 was not provided by any .service files
When attempting to launch system-config-users from command line, I get the following warning, and the tool does not open. I'm using CentOS 7 with Mate 1.8.1.
WARNING **: Error enumerating actions:
…
a coder
- 3,184
- 9
- 42
- 63
46
votes
1 answer
What are ConsoleKit and PolicyKit? How do they work?
I have seen that recent GNU/Linux are using ConsoleKit and PolicyKit. What are they for? How do they work?
The best answer should explain what kind of problem each one tries to solve, and how they manage to solve it.
I am a long-time GNU/Linux user,…
Denilson Sá Maia
- 1,707
- 2
- 13
- 14
37
votes
7 answers
Authentication is required to create a color profile
I am running a fresh install of CentOS 7 GNOME
so I could RDP from Windows. I followed the “Connect to GNOME desktop environment via XRDP” instructions,
but when I connect I get an additional login that says
authentication is required to create a…
Starblight
- 544
- 1
- 5
- 13
20
votes
2 answers
Restarting systemd service only as a specific user?
I created some systemd services which basically works:
location:
/etc/systemd/system/multi-user.target.wants/publicapi.service
content:
[Unit]
Description=public api startup…
Bevor
- 671
- 2
- 11
- 22
16
votes
1 answer
What happens when I press "Shut Down" from the GUI?
I have been banging my head against this for quite a while now. It's related to this question. I would like to find out exactly what happens when I choose to shut down my Linux box from the GUI. This seems to be poorly (if at all)…
Joseph R.
- 38,849
- 7
- 107
- 143
14
votes
2 answers
systemctl keeps timing out on service restart
I'm running CentOS 7.2; see below:
# systemctl stop firewalld
Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached (g-io-error-quark, 24)
Failed to stop…
user26053
13
votes
2 answers
system policy prevents control of network connections
When we log into a KDE seesion using X2Go client, the user is greeted with a dialog asking for a sudo password. I do not want the user to have a sudo password and I would like to prevent the dialog from appearing. The user should not be bothered…
MountainX
- 17,168
- 59
- 155
- 264
10
votes
3 answers
Is there a way to check for a working polkit agent without checking for running process?
I need to check if I have an usable polkit agent in a desktop-environment agnostic way.
Right now, what I'm doing is to check if a polkit agent is running, using a code like this:
ps aux | grep some-polkit-agent
where some-polkit-agent may…
ivanalejandro0
- 201
- 1
- 2
- 4
9
votes
3 answers
How can I reboot a server with systemctl if systemctl reboot fails?
I tried rebooting my CentOS 7 server but it gives ridiculous error messages.
As root (of course):
# systemctl reboot
Authorization not available. Check if polkit service is running or see debug message for more information.
Failed to start…
Ned64
- 8,486
- 9
- 48
- 86
9
votes
1 answer
How does gnome reboot without root privileges?
I am reading the book Linux kernel development, in chapter 5 "System Call Implementation" page 77 says
For example, capable(CAP_SYS_NICE) checks whether the caller has the
ability to modify nice values of other processes. By default, the
…
osdamv
- 193
- 6
8
votes
2 answers
Explanation of file - org.freedesktop.login1.policy
I am using Ubuntu 16.04.
There is a file located at /usr/share/polkit-1/actions/org.freedesktop.login1.policy which seems to control the permissions regarding shutdown/suspend/hibernate options.
In this file, the revelant options are in this…
Anmol Singh Jaggi
- 352
- 3
- 15
7
votes
1 answer
Non-root user cannot control NetworkManager. polkit rule has no effect
I have disabled slim and lightdm, using startx instead. Almost everything works, except I cannot control the network connections with NetworkManager when logged in as the non-root user. Enable Networking and Enable Wifi are grayed out. If I go to…
Tim
- 496
- 5
- 14
6
votes
1 answer
Policy Kit isn't working properly?
Linux Mint 19 x64 with Cinnamon
Whenever I try to install a .deb by double clicking the file and clicking "Install Package" on the Package Installer popup, I get the following error:
There seems to be a programming error in aptdaemon, the software…
Corey Ogburn
- 461
- 1
- 6
- 15
6
votes
1 answer
openSuse: how to get rid of annoying "Authentication Required" dialog from auto-update
This annoying dialog "Authentication Required" started to pop up recently, just after every login to KDE, demanding root password to refresh system repositories. After a minute or so it disappears on it's own, followed by a "update failed" tray…
Espinosa
- 535
- 1
- 5
- 12
5
votes
2 answers
systemd service management using pkla equivalents to polkit's rules on Debian
I'm trying to allow users of a somegroup to manage someunit systemd service.
In polkit (>=0.106), this can be done by adding rules:
/etc/polkit-1/rules.d/20-someunit.rules
---
polkit.addRule(function(action, subject) {
if (action.id ==…
Stewart
- 12,628
- 1
- 37
- 80