Questions tagged [policykit]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 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
3 votes
2 answers
236 views

unable to mount external drive from cron (using udisksctl)

GOAL I'd like to mount an external drive using cron for automatic backups, preferably with udisksctl. PROBLEM udisksctl mount -b /dev/sdXY works fine from the command line or shell script, but when I ...
petermao's user avatar
0 votes
0 answers
233 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
282 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
2 votes
0 answers
387 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
3 votes
0 answers
175 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
0 votes
2 answers
292 views

Gtk desktop app delayed on first launch (20.04)

I have a Gtkmm desktop app that requires root access. It worked fine on 18.04 using Lxqt-sudo but after upgrading to 20.0.4, it takes ~30 seconds to open only the first time after booting. In addition,...
Mick's user avatar
  • 23
0 votes
0 answers
165 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
488 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
1 vote
1 answer
766 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
1 answer
509 views

Ubuntu 18.04 xrdp "Fix" Broke Everything

I have a Ubuntu 18.04 box I remotely access using xrdp. I noticed at login I kept getting this "Authentication is required to create a color profile/managed device" message whenever I logged ...
Hart Russell's user avatar
0 votes
0 answers
860 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
1 answer
150 views

Why is policykit-1, agetty and qemu-ga running on a VPS server?

I didn't check my Ubuntu VPS server for a while and I can't remember these processes running displayed by ps aux: root 1074 0.0 0.1 14664 2032 ttyS0 Ss+ 2020 0:00 /sbin/agetty -o -p -- ...
kungfooman's user avatar
0 votes
0 answers
443 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
1 vote
0 answers
180 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
231 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 votes
1 answer
266 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
2 votes
1 answer
671 views

After installing Chrome Remote Desktop polkit permissions are all skrewed up

After installing chrome-remote-desktop on Ubuntu 21.10 it seems to mess up polkit permissions. It asks for my password 3 times after logging in (color profiles, remote repositories, color management?),...
Shanteva's user avatar
  • 181
0 votes
1 answer
932 views

always ask for sudo password when rebooting/shutdown the system

So, I noticed that on manjaro, if there is only one user, typing reboot without sudo, will just fail and ask for the sudo password, whereas on ubuntu server, typing this doesn't ask for the sudo ...
Liwinux's user avatar
  • 53
3 votes
0 answers
346 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
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
3 votes
1 answer
1k views

How do I allow non-admin users to control printers?

An Ubuntu (21.10) PC is shared among a number of users, most of whom are not administrators. They are not allowed to install/remove/update software or directly alter system files, nevertheless all of ...
Ivan's user avatar
  • 57k
0 votes
1 answer
946 views

Polkit All Messed Up

Ubuntu, vanilla 20.04.3 LTS - Originally installed Ubuntu about June of 2018. Somehow I recently messed up my own permissions and started getting polkit error messages about me not being a member of ...
David Donaldson's user avatar
8 votes
1 answer
1k views

How does Firefox update itself without asking for root/sudo password?

How does Firefox update itself without asking for root/sudo password? It's installed in /usr, where regular users don't have write permissions, and neither /usr/bin/firefox, nor any files in /usr/lib/...
MWB's user avatar
  • 724
0 votes
0 answers
562 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
1k views

I am not able to use any software that requires user authorization if not using gnome (21.04)

I am not able to use any software that requires user authorization, like ubuntu software center (snap store), softwares updates, etc, because when it's time to ask for my password to execute the task (...
res1's user avatar
  • 111
2 votes
1 answer
495 views

How to force policy-kit agent to show full information about command line arguments

I am using Ubuntu Mate 20.04 and pkexec to launch apps with admin privileges if needed. However, when policy agent kit asking to authorize request, there is no enough information to make a decision. ...
ov7a's user avatar
  • 241
6 votes
1 answer
8k views

Can I remove policy kit?

On every desktop startup, I have a dialog asking for password. The cause is policy kit. I haven't found what exactly is raising the prompt, but it brings me to the question: Do I need policy kit? If ...
Stephen Boston'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
113 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
0 votes
1 answer
560 views

Software & Updates permission failed

OS: Ubuntu 18.04.5 LTS x86_64 Kernel: 4.15.0-135-generic DE: MATE When i run Software & Updates i get the following error: You are not allowed to perform this action You don't have the required ...
Powermongur's user avatar
0 votes
1 answer
433 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
3 votes
1 answer
669 views

Polkit Window doesn't allow user selection, how to pick different admin

I'm running the latest Ubuntu 20.04.1 It seems like polkit(I could be wrong here) isn't working as expected. When a regular, non-admin, user tries to do something that needs admin, they get a dialog ...
9841E30's user avatar
  • 33
0 votes
0 answers
147 views

This a problem with /etc/sudoers.d file? [duplicate]

After executing this line, the return worried me. ~$ sudo apt-get update && apt-get upgrade && apt-get dist-upgrade E: Could not open lock file /var/lib/dpkg/lock-frontend - open (...
user197536's user avatar
4 votes
1 answer
7k views

firewall-cmd error on polkit

I am trying to run firewall-cmd --list-all but i am receiving the response Authorization failed Make sure polkit application is running or run the application as superuser. I can see that polkit is ...
markum's user avatar
  • 61
4 votes
1 answer
772 views

What's going on with PolicyKit?

PolicyKit shipped in Ubuntu 20.04 has version 0.105 from 2012. Currently Fedora 33 ships version 0.116. I know there was a change in configuration files starting from version 0.106 (they became ...
Osqui's user avatar
  • 648
3 votes
2 answers
2k views

Configuring Polkit to allow complete control remotely

I have a headless server running Ubuntu 20.04 LTS. It has been infuriating trying to deal with configuring various aspects of my server when I am not allowed to do so. Polkit has made the simple act ...
Naso4265's user avatar
1 vote
1 answer
2k views

Allow Remote Users to Add/Remove Printers

This is driving me up the wall! I feel I'm so close, but I'm probably missing just one tiny detail. I have a Ubuntu desktop setup to be a CUPS server. I need to add printers via the GUI interface, ...
linad181's user avatar
1 vote
1 answer
2k views

unable to enable sierra modem due to policykit

I have a machine running ubuntu 16.04 and mmcli 1.6.4 with a Sierra MC7710 modem installed. It's currently showing mmcli -m 0 -w /org/freedesktop/ModemManager1/Modem/0: Initial state, 'disabled' when ...
Lurch's user avatar
  • 141
4 votes
0 answers
695 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
  • 355
4 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
  • 41
4 votes
1 answer
7k views

Fingerprint-gui not installing in 20.04 [duplicate]

I tried the following but no use: sudo add-apt-repository ppa:fingerprint/fingerprint-gui sudo apt update sudo apt install libbsapi policykit-1-fingerprint-gui fingerprint-gui I got this error: E: ...
srik's user avatar
  • 53
1 vote
0 answers
38 views

Fingerprint gui not installing in ubuntu 20.04 Even tried adding ppa [duplicate]

I tried the following commands: sudo apt-add-repository ppa:fingerprint/fingerprint-gui && sudo apt-get update sudo apt-get install libbsapi policykit-1-fingerprint-gui fingerprint-gui but I ...
srik's user avatar
  • 53
16 votes
4 answers
58k views

Fingerprint GUI not installing in Ubuntu 20.04

I'm trying to install fingerprint-gui on my Lenovo Ideapad 520 having Ubuntu 20.04 on which fingerprint isn't working for now. I tried going directly to Settings → Users → Automatic login and enabled ...
Prince Kukreja's user avatar
1 vote
0 answers
104 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
3 votes
2 answers
9k views

NetworkManager constantly prompts for admin password

I'm running Ubuntu 19.10. NetworkManager constantly asks for the admin password with "System policy prevents wi-fi scans" I've seen online instructions for how to disable this with polkit, but nothing ...
Shanteva's user avatar
  • 181
0 votes
1 answer
630 views

polkit asks for password constantly while looking at wifi settings

polkit asks for my password when I do ANYTHING with wifi settings. I've already tried editing usr/share/polkit-1/actions/org.freedesktop.NetworkManager.policy and setting allow_active to yet, but it ...
Shanteva's user avatar
  • 181
2 votes
1 answer
3k views

How to let Polkit request root password instead users password

I'm seeking for kind of old style solution: I need to cause all elevated priviledges platform on Ubuntu machine to request target user/root password instead of asking for calling user password. I've ...
LifeOnNet's user avatar
3 votes
1 answer
15k views

not authorized to perform operation polkit authority not available

I have successfully set up remote connection to a PC (which uses linux) via XRDP. the system from which the connection is lunched is on Windows 10. when using remote connection, I am not given ...
BarzanHayati'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