Polkit (formerly PolicyKit) is a component for controlling system-wide privileges in Unix-like operating systems.

learn more… | top users | synonyms

2
votes
1answer
302 views

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 ...
1
vote
1answer
76 views

gksu replacment

In the old days of CentOS 5 i had an application that run as another user. I created a .desktop file which run a command that looked like this: gksu -u anotheruser someapplication When the user ...
0
votes
1answer
93 views

How do I use fingerprint-gui's polkit agent with GNOME Shell?

I'm using Arch Linux, and have installed fingerprint-gui from AUR. It detected the sensor after I added myself to the plugdev and scanner groups. After prepending the following to ...
3
votes
0answers
363 views

What to do if apt-get -f install fails?

I'm in a difficult situation. Using Debian Jessie / Stretch, apt-get -f install fails. The system is effectively stuck. I've sshed in now. As far as login terminals, only one was becoming ...
2
votes
0answers
32 views

Giving a user access to the webcam

I have a user that I use to run untrusted programs (more specifically, Skype). I would like to give that user access to the webcam. I am using Debian, where the standard way to do this is to put ...
0
votes
0answers
29 views

Polkit Accepting Nothing

Today I switched from Windows to Fedora 21--Fermi Linux using KDE specifically--and I have a fair knowledge of how to do navigate my way around and install things via command line, but when it's ...
5
votes
1answer
270 views

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 ...
2
votes
1answer
598 views

What are the default Polkit privileges on Arch Linux for shutdown, halt, etc., and why are they so?

On Arch Linux, with systemd, the following commands are all symlinks to systemctl: /usr/bin/telinit /usr/bin/poweroff /usr/bin/runlevel /usr/bin/reboot /usr/bin/halt /usr/bin/shutdown I find their ...
1
vote
0answers
61 views

ConsoleKit reports active/is-local only on the second+ login

Running KDE Frameworks 5, Plasma 5, using sddm as a display manager. ConsoleKit and PAM-linux are both installed. Upon login (using the sddm login screen), ck-list-sessions returns FALSE for both ...
2
votes
1answer
455 views

Xen libvirt access for non-root user

I've installed Xen and libvirt on a CentOS 6.6 machine. All the tools (virt-manager, virsh etc) work perfectly as root (directly or via sudo) but I cannot allow another user to connect (failed to ...
4
votes
1answer
217 views

Late authentication

I run Debian Wheezy with a simple window manager (Blackbox). If I remember correctly, in Ubuntu some applications like Synaptic and Update Manager ask for sudo password only when/if needed. How do I ...
1
vote
0answers
65 views

KDE4 PolicyKit backdoor(misconfiguration) (tested on FBSD10x,PCBSD, probably will work on linux)

recently found subj on FreeBSD 10.x out of the box (with KDE4): [user@fbsd10] /home/user% su Password: su: Sorry [user@fbsd10] /home/user% sudo csh Password: Sorry, user user is not allowed to ...
1
vote
2answers
575 views

Allowing normal user to mount and eject devices

In the file manager PCManFM I can access discs in my USB DVD drive but I cannot eject them or access other USB storage devices - I get the error message "Not Authorized". Any clues? I use Debian ...
9
votes
1answer
15k views

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 ...
5
votes
2answers
340 views

Suspend to RAM not working

I get following error when I try to suspend my laptop: failed to check authorisation: GDBus.Error:org.freedesktop.DBus.Error.Service.Unknown: The name org.freedesktop.PolicyKit1 was not provided by ...
1
vote
0answers
334 views

How can I install Policykit with System V?

I created a minimal install on my Raspbian Raspberry Pi running Debian Jessie. Among other things, I removed libx11-.* and dependencies, which included removal of policykit-1. I'm trying to reinstall ...
2
votes
1answer
738 views

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 ...
3
votes
1answer
504 views

Invoking PolicyKit/polkit via xinit/startx?

I recently upgraded a minimal installation of Ubuntu (with no full-fledged DE) from precise to saucy and since doing so I'm no longer able to mount removable drives as a normal user. I googled a bit ...
6
votes
1answer
1k views

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 ...
0
votes
2answers
376 views

How to configure polkit with KDE?

My system is Gentoo amd64, KDE 4.11, and lightDM. I updated my system recently, and found out my user account can't shutdown from KDE. The function is disappeared. I looked for a long time, and I ...
13
votes
1answer
2k views

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 ...
3
votes
3answers
5k views

Can't mount drive in Thunar anymore

Today, I got a Not authorized to perform operation. message when I tried to mount a drive in Thunar. # cat /etc/polkit-1/localauthority/50-local.d/10-udiskie.pkla [Local Users] ...
1
vote
3answers
754 views

How can I fix the location of polkit and glib include headers?

I am developing an application in which I require to use PolicyKit and it appears PolicyKit uses Glib libraries. What happens is that I installed PolicyKit, but the location of the headers are on ...
4
votes
1answer
6k views

Arch Linux , mount disks with thunar , without password

I just setup a minimal installation of Arch , installed gvfs , thunar-volman. But mounting disk requires password , this shouldn't happen. How should I work it out ?
3
votes
2answers
1k views

Removing supend and hibernate privileges

On OpenSUSE 12.1 x86_64, Gnome 3.2 . I want to remove the suspend and hibernate options from the Gnome (Shell) menu as suspend makes no sense IMO for a desktop hibernate has a slight tendency to ...
3
votes
1answer
150 views

What is the best way to restraint/secure a workstation?

I want to prevent users to copy on usb devices and some others actions. I was thinking of using polkit. Do you think it is a good solution or does someone know some alternatives ? EDIT: I also need ...
4
votes
3answers
3k views

How do I shut down a system through a ConsoleKit DBus message as user?

I found the following command line to shut down a Debian/GNU Linux system dbus-send \ --system \ --dest=org.freedesktop.ConsoleKit \ --type=method_call \ --print-reply \ ...
3
votes
3answers
692 views

Prevent non-root user from formatting a partition

Few days back I mistakenly formatted a partition on my external hard drive by clicking Format from the Context menu in Computer. I want to know that how can I prevent non-root user from being able to ...
28
votes
1answer
9k views

What are ConsoleKit and PolicyKit? How do they work?

I've 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 ...