Questions tagged [policykit]

Now called polkit, it's an OS component for controlling system-wide privileges in Unix-like operating systems.

51 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
8 votes
0 answers
2k views

GUI editor for polkit?

Searching for GUI and polkit (with or without "editor") only give me lots of links to authentication agents. But on my travels I found a screenshot showing just what I was looking for: What is this ...
symcbean's user avatar
  • 219
7 votes
0 answers
1k views

How do I allow a group to manage a systemd service using polkit?

I have a service (some-service) on my system that I'd like to allow members of group managers to control (start, stop, restart). I would also allow these users to use PolicyKit instead of sudo for ...
Kaz Wolfe's user avatar
  • 34.1k
5 votes
1 answer
4k views

Not authorized to perform operation (polkit authority not available and caller is not uid 0) (udisks-error-quark,3)

I've a Dell Precision Ultra-Speed Drive Quad x16 card installed in Dell 5820 workstation in which 4 x ADATA 2TB NVMe SSD drives. Besides, 1 x Toshiba 2TB NVMe SSD drive (Ubuntu 18.04 boot) and 2 x ...
NTT100's user avatar
  • 51
5 votes
1 answer
11k views

Can't update flatpak: »Flatpak system operation Deploy not allowed for user«

I have some problems trying to update my flatpaks. I have several applications installed via flatpak (system wide) and from time to time I am updating all of them with the command: flatpak update -y ...
user5950's user avatar
  • 6,206
5 votes
0 answers
1k views

How to write a policykit/polkit permission file to programmatically have access to a file in /usr/share

I'm writing an application that needs to read and write an existing file in /usr/share... If I understood well I need to use Polkit/PolicyKit to ask the system for a permission and ask the user to do ...
Name is carl's user avatar
4 votes
0 answers
715 views

Configure pkexec to only prompt for password once

When using sudo there is a timeout where you don't have to type the password again for x minutes when you run sudo again. Is it possible to get the same thing for graphical applications which use ...
krispy's user avatar
  • 363
4 votes
0 answers
140 views

Require confirmation but not authentication before elevating

By default, many things that use polkit to run (like synaptic) will ask the user to reauthenticate before starting. I'd like to disable this reauthentication, but still get confirmation that the user ...
Joseph Sible-Reinstate Monica's user avatar
3 votes
0 answers
195 views

How to enable accessibility for GTK applications running as root?

I have a graphical application on Ubuntu 20.04 that is run with pkexec to properly get necessary root access. Many users will need the on-screen keyboard for this app, however I noticed that GTK apps ...
Mdurks's user avatar
  • 81
3 votes
0 answers
363 views

Where are Polkit actions documented?

How does one determine the name of a program (application) for Polkit? In this example (a file in /etc/polkit-1/localauthority/50-local.d/) [My Muon Permissions] Identity=unix-group:sudo Action=org....
HiTechHiTouch's user avatar
3 votes
0 answers
6k views

pkexec can not start any GUI application

I am running Ubuntu 13.04, Gnome 3.6. There is something amiss with pkexec that is not allowing it to start any gui application. pkexec synaptic in a zsh terminal produces a box asking for admin ...
deshmukh's user avatar
  • 4,061
2 votes
0 answers
416 views

Ubuntu chrome remote desktop authentication super user

I tried to use google remote access to my Ubuntu computer for the first time in a while. When I try to turn on the chrome remote desktop to share my device, I get "An unknown error has occurred.&...
cchoi1022's user avatar
2 votes
0 answers
1k views

Debug PolicyKit Rules?

I'm running into what seems to be a simple problem that is driving me crazy. I've done a clean install of Kubuntu 20.04. Everything is working fine locally on the machine, but my primary use case is ...
wadeh's user avatar
  • 49
2 votes
0 answers
10k views

gdbus.error:org.freedesktop.DBus.Error.AccessDenied error when running on battery

I have ASUS GL552VW laptop with Xubuntu 17.04 and when I get out of power (running on battery) I've got this error in notification popup: gdbus.error:org.freedesktop.DBus.Error.AccessDenied ...
jcubic's user avatar
  • 916
2 votes
1 answer
200 views

Policykit issue after installing custom kernel

OS: Xubuntu Original Kernel version: 4.4.0 New Kernel version: 4.1.3 I recently compiled a patched kernel. The details of the patch and installation procedure are here: https://wiki.litmus-rt.org/...
Xpleria's user avatar
  • 71
2 votes
2 answers
2k views

How do I mark a group in polkit as administrator?

I am using authentication via smb and want all users of the admins group as local administrators. For this I created the /etc/polkit-1/localauthority.conf.d/60-local.conf file as described in ...
mist's user avatar
  • 41
2 votes
1 answer
3k views

Give domain users administrator account or access to software center

I have installed Ubuntu 12.04 LTS on a couple of machines. The domain is running Windows. I have managed to add machines in domain with likewise-open and give sudo access to domain groups. Problem is ...
Mihai-Daniel Muresan's user avatar
2 votes
0 answers
82 views

How can I prevent close session/shutdown/reboot when certain console program is executing?

I want to disable close session/shutdown/reboot from Gnome (Unity/Lightdm) when lftp is executing. Is there any way? Perhaps with polkit?
Juan Simón's user avatar
  • 1,703
1 vote
1 answer
816 views

Ubuntu 22.04 Gnome GUI doesn't ask for password to perform privileged actions (EG Software Updater) - You are not allowed to perform this action

Screenshot I've got a fresh install of Ubuntu 22.04 Server. I installed Slim and ubuntu-desktop afterwards to get a GUI. When I login to the GUI and open the Software Updater it tells me "You are ...
Digioso's user avatar
  • 11
1 vote
0 answers
189 views

Polkit authentication dialog locks focus

I'm using XFCE as desktop manager with XFWM as the window manager. Whenever an application uses polkit (or at least that's what I think it is) for authentication, the password dialog locks focus, so ...
martibs's user avatar
  • 53
1 vote
0 answers
250 views

Delete polkit rule

I have followed this article https://devanswers.co/how-to-fix-authentication-is-required-to-create-a-color-profile-managed-device-on-ubuntu-20-04-20-10/ Now I am no longer able to remove users, ...
Atharv Rastogi's user avatar
1 vote
1 answer
1k views

The "Unlock" button has no effect in the "Time and Date Settings" dialog

I am trying to change the timezone via UI. In order to do that I run time-admin from a command line as a regular user. (It is also possible to open the same dialog by right-clicking on the Clock ...
Alexander Pozdneev's user avatar
1 vote
0 answers
121 views

installing software policy without password

I'm using Ubuntu 18.04.5 LTS, There are two accounts one with administrator privileged, the second is the standard one(without password) I created a new file called: 10-allow-users-to-install.pkla ...
Majd's user avatar
  • 61
1 vote
0 answers
106 views

How to install software using Software Center as non-root user?

How can I allow non-root users to install from Software Center? I want to be able to install software as current logged in user, but instead I am prompted with Administrator and Password. This is ...
user17378's user avatar
  • 141
1 vote
1 answer
2k views

Snap package daemons won't start on fresh Ubuntu Server install

a couple of days ago I installed Ubuntu Server 18.04. Snap packages were a large reason for this, however snap package daemons won't start. So far I've tried NextCloud, PlexMediaServer and RocketChat-...
chargedPeptide's user avatar
1 vote
1 answer
383 views

How to troubleshoot pen drive mounting via File Manager in Xubuntu?

I have Xubuntu 18.04 and I can't make pen drives mount when I click on them in the file manager. I get a Failed to mount "PEN DRIVE LABEL". Not authorized to perform operation. pop up error. This is ...
Rsevero's user avatar
  • 41
1 vote
1 answer
1k views

polkit not working properly in Ubuntu 16

I have a dual boot, and in order to mount the Windows filesystem from Ubuntu, I had set it up so that I need to type in my password, to prevent me from accidentally mounting a system by clicking the ...
anotherguy's user avatar
1 vote
0 answers
6k views

PolicyKit daemon disconnected from the bus. Error when starting services without sudo on the super user account

Hopefully this will be a quick fix, but I have been having a consistent error whenever I try and start a service on my machine. Whether it be ssh, rdp or apache2, whenever I try and launch the ...
user738556's user avatar
1 vote
1 answer
3k views

Language Support in 18.04 not working org.freedesktop.PolicyKitError.Failed

I believe that after upgrade to 18.04 Lubuntu I have a common root problem which affects many things. Looks like no application, which would require root privileges could open. For example, Synaptics ...
VladCE's user avatar
  • 11
1 vote
0 answers
2k views

12.04 - Cannot unlock user account although it is an admin account

I am having problems similar to these, but in this post no one managed to solve it. How do I unlock system tools such as users and date and time This issued is bothering me a lot, because it also ...
David's user avatar
  • 11
1 vote
1 answer
529 views

how to roll back broken privileges in 14.04?

I am running Ubuntu 14.04.3 32bit OS. A few months ago I wanted to install QTCAM from source which it requires systemd library files. As you know 14.04 Ubuntu doesn't use systemd yet, so, as the ...
kenn's user avatar
  • 5,162
1 vote
0 answers
708 views

i receive this error when i try 2 install a package through software-center any help plz

Software can't be installed or removed because the authentication service is not available. (org.freedesktop.PolicyKit.Error.Failed: ('system-bus-name', {'name': ':1.124'}): org.debian.apt.install-...
Nauman Nasir's user avatar
1 vote
0 answers
227 views

Elevation not working

Complete newbie here. Muon recently started giving an error upon installing: This operation cannot continue since proper authorization was not provided After that I noticed I cannot restart/...
Rodrigo Benevides's user avatar
1 vote
0 answers
236 views

GUI anthentication doesn't work. No privileges

This is on Xubuntu 14.04 64-bit After a forced restart (due to nvidia overheating) I noticed that no sound was playing, and in fact pulseaudio showed only dummy devices. While looking for a solution, ...
Kerai's user avatar
  • 11
1 vote
0 answers
840 views

Lubuntu 14.04: fatal GDBus Error upon session login

Two days ago I freshly installed a Lubuntu Desktop 14.04 on an old Centrino M with 2 accounts: uid 1000 (administrator) and uid 1001 (general user) Until an hour ago all was well. Then shortly ...
Cbhihe's user avatar
  • 2,761
1 vote
1 answer
284 views

how to do administartive tasks from remote X SSH

I forwarded X over ssh. From unity-control-center I couldn't perform any of the administrative tasks like changing audio input, changing wifi network etc. How can I do them remotely. Its the same ...
Necktwi's user avatar
  • 1,057
1 vote
1 answer
3k views

Can't install software due to "Authentication service is not available" error

Yesterday I installed Lubuntu 14.04 alternative iso on an old XP laptop. The partition and install went well. There are, however some issues with security, or my ability to add users and software. I ...
TorontoBoy's user avatar
0 votes
0 answers
50 views

/etc/polkit-1/localauthority/ doesn't exist

I was trying to fix hibernation on my laptop with Ubuntu 23.10. A guide suggested to edit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla. I did it and then ran sudo update-...
antos07's user avatar
0 votes
0 answers
409 views

polkit.service running, but getting authorization protocol specified

I need to run sudo balena-etcher and I keep getting "Error: No polkit authentication agent found", it seems I need something like polkit-gnome-1 running, but whenever I try to run it I get ...
Nikola-Milovic's user avatar
0 votes
0 answers
376 views

Troubleshooting Polkitd on Ubuntu 20.04.6 LTS

I'm not sure where to begin... I'm trying to troubleshoot an issue where on the vast number of deployed Ubuntu 20.04.6 LTS systems, users never receive a popup asking to enter their password when ...
Zero0ne's user avatar
  • 23
0 votes
0 answers
180 views

How can I see the core dumps produced by the policy-kit service?

I seem to have an issue with policy-kit. The output of systemctl status --full --lines=100 polkit.service is Feb 12 18:35:46 flu-T430 systemd[1]: polkit.service: Changed failed -> start Feb 12 18:...
Zuabi's user avatar
  • 181
0 votes
0 answers
532 views

How to enable fingerprint for screen unlocking and PolicyKit authentiation in Kubuntu 22.10?

I registered 2 fingerprints, but they don't seem to show up or work. Here's my fingerprint reader according to lsusb of my 4th generation ThinkPad X1 Yoga: Bus 001 Device 017: ID 06cb:00bd Synaptics, ...
YamiYukiSenpai's user avatar
0 votes
0 answers
905 views

After giving admin permissions to a user, xrdp shows a black screen

My host is an Ubuntu 22.04.1 machine on Oracle server, my client is an Ubuntu 20.04.5. The connection was established via xrdp 0.9.17 using Xorg with no issue. Following this guide, I tried to give ...
giammi56's user avatar
  • 110
0 votes
0 answers
467 views

Disabling linux user password prompts when accessing encrypted drives (polkit conf?)

I just created a new ext4 partition on a new drive and decided to use LUKS to encrypt it. I entered a password to use for encryption and the partition was created. So far, so good. However, I have the ...
Tomislav Nakic-Alfirevic's user avatar
0 votes
0 answers
588 views

Debugging a Policykit error

I am getting the following error when attempting to access the /mnt/data directory from the desktop. GDBus.error:org.freedesktop.Policykit1.Error.Failed:Unix process subject does not have uid set ...
Shaun Forgie's user avatar
0 votes
1 answer
443 views

locked out of my luks volume "Not authorized to perform operation (polkit authority not available and caller is not uid 0)"

For no apparent reason, I can no longer access my LUKS-encrypted volume. It has been working for months but today on trying to open it in Nautilus, I get a passphrase request (which I didn't before, ...
user234899's user avatar
0 votes
1 answer
170 views

Can not run updates on Bionic 18.04

So I had a problem with Xenial and thought it would be solved when I upgrade to Bionic but I still have the issue. After doing a fresh install of Bionic, I tried to update everything using the '...
Josh's user avatar
  • 21
0 votes
0 answers
235 views

can't update from 16.04

I haven't had much help in the reddit/crouton forums so I thought i'd try here. I'm trying to upgrade my ubuntu 16.04 to 18.04 and it is saying I do not have the proper permissions. the same thing ...
Josh's user avatar
  • 21
0 votes
1 answer
2k views

polkitd: unrecognized service [Ubuntu Server 16.04.3]

Running sudo service polkitd reload gives me a polkitd: unrecognized service message. I restarted the dbus service, the message remained the same. I thought polkit is supposed to be part of the system,...
Zazula's user avatar
  • 1
0 votes
1 answer
95 views

lost right as administator

I have 12.04 freshly installed in my laptop. Recently I lost my rights as administrator. Hereare the problems: unable to do updates from Update Manager (though no problem if I do it from terminal). ...
user115334's user avatar
-1 votes
1 answer
275 views

when i want install any application ot want to open folder as a adminstrator I will got follwing error error incorrect permissions

error incorrect permissions on /usr/lib/policykit-1/polkit-agent-helper-1 (needs to be setuid root) I have tried following command ls -l /usr/lib/policykit-1/polkit-agent-helper-1 Expected output is ...
nayanmange's user avatar