Skip to main content

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
86 votes
3 answers
37k views

When to use pkexec vs. gksu/gksudo?

There are two general ways to run applications graphically as root (or, more generally, as another user). Programs like gksu, gksudo, and kdesudo are graphical frontends for sudo. In contrast, pkexec ...
Eliah Kagan's user avatar
52 votes
5 answers
16k views

How can I set the Software Center to install software for non-root users?

How can I set the Software Center to allow non-root users to install stuff from the Ubuntu repos without having to type in their password? I'm fully aware of the security implications, and I am ...
dieki's user avatar
  • 3,382
36 votes
2 answers
41k views

How do I prevent PolicyKit from asking for a password?

For years, I've had the following in my sudoers file: scott ALL=NOPASSWD: ALL For those who don't know, this prevents sudo and friends (gksudo, etc.) from asking for a password. However, over the ...
Scott Severance's user avatar
34 votes
2 answers
31k views

/etc/sudoers file corrupted and I can't run 'pkexec visudo' over SSH

Following the instruction here I get: pkexec visudo ==== AUTHENTICATING FOR org.freedesktop.policykit.exec === Authentication is needed to run `/usr/sbin/visudo' as the super user Authenticating as: ...
Thomas Ulrich Christiansen's user avatar
31 votes
2 answers
21k views

Authentication required before suspend

Since the last update of Ubuntu 14.04, when I press the sleep button in my laptop, a pop-up window appears with "Authentication is required for suspending the system". Password is not requested when ...
arauzo's user avatar
  • 1,008
29 votes
1 answer
2k views

How to know if a authenticate box is real or fake?

For example, someone creates a fake Authenticate dialog to get my root password. How to know if it is real or fake?
user3683331's user avatar
23 votes
4 answers
9k views

Seemingly random "Authentication is required to change your own user data"

Ever since I upgraded to 14.10 I get a strange behavior on my desktop. I get popups claiming "Authentication is required to change your own user data" and a prompt for my password. It happens at ...
itsadok's user avatar
  • 2,904
21 votes
2 answers
4k views

What is the most "Ubuntu" way of preventing certain users from shutting down, suspending etc?

On a traditional Unix system, non-root users cannot do this. What is it that gives users this ability in modern desktop environments and how would I go about disabling this on a per-user or per-group ...
thomasrutter's user avatar
18 votes
3 answers
15k views

PolicyKit rules never come into effect

I'm trying to write a new .rules file for PolicyKit. My test attempt (in the directory /etc/polkit-1/rules.d/) looks like this: polkit.addRule(function(action, subject) { polkit.spawn(["rm","/...
Keidax's user avatar
  • 801
18 votes
3 answers
21k views

How do I set the policy for users to modify the network state and connections?

How can I set the permissions for users to make changes to the network connections and state? For instance, how can I allow/disallow users to connect to new wireless networks? How can I allow/disallow ...
HarlemSquirrel's user avatar
17 votes
6 answers
18k views

Hibernate missing in login screen

Re-enabling hibernation by adding a rule to policy kit added the option to hibernate to the desktop session as expected, but not for the login screen. How can I enable hibernation right from the ...
Dusan Milosevic's user avatar
17 votes
4 answers
59k 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
17 votes
7 answers
13k views

How to prevent system applications (like the Software Center) from asking for password?

I'd like Software Center, Update Manager and some other system management applications to work without asking for password (like sudo does if configured with NOPASSWD) but only asking for a ...
Ivan's user avatar
  • 57.5k
14 votes
1 answer
19k views

Disable authentication prompts in 15.04?

I'd like to know how I can disable the authentication prompts when opening apps such as Synaptic, mounting disks and so. I got my user as passwordless set in sudoers, but seems the change to systemd ...
plasmating's user avatar
13 votes
2 answers
4k views

What is the name of the security concept that explains why Linux asks for root password?

Whenever I'm installing new software or making changes to the system, Linux asks for the root password. What is the name of this security concept and where can I research more information about it?
Leandro Bueno's user avatar
12 votes
3 answers
30k views

How to get GUI sudo password prompt without command line?

Currently, for all my commands that require root access, I have to type them out on a command line. I would like for the GUI to prompt me to key in my password, when sudo is required, instead of ...
Sean's user avatar
  • 121
11 votes
2 answers
11k views

How can non-admin users connect to Wi-Fi networks?

I'm trying to configure PolicyKit so that other users are allowed to configure Wi-Fi connections, but my changes don't seem to bring any results at all. When a non-admin user tries to connect to a ...
viraptor's user avatar
  • 396
10 votes
1 answer
10k views

How to disable shutdown/reboot from lightdm in 14.04?

In 12.04 it was possible to prevent system shutdown or reboot from the login screen by adding the following restrictions in /etc/polkit-1/localauthority/50-local.d (adapted from here): [Disable ...
Alex's user avatar
  • 201
10 votes
1 answer
4k views

Root tasks using dbus and policykit

At some point my application needs to do administrative tasks like creating a file in /etc or running commands with root priveleges. I know just could do a Q&D: os.popen("pkexec foo bar") But I ...
liberavia's user avatar
  • 121
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
8 votes
1 answer
18k views

How to disable the password prompts?

I've have Ubuntu 15.04 on my laptop and just about everything I do requires me to enter my password. What do I have to do so I don't have to keep entering my password?
Jim from Detroit's user avatar
8 votes
3 answers
13k views

pkexec won't launch polkit GUI in Lubuntu / LXDE

I performed a fresh install of Lubuntu 12.04 with minimal desktop, as described here. To clarify, I did a command-line install from the Lubuntu alternative install disc, then I did an apt-get install ...
ven42's user avatar
  • 433
8 votes
3 answers
8k views

Polkit pkla rule is not working on 18.04

I have troubles with infamous colord policy prompts on Gnome 3.28.1. With XFCE desktop on the same system I have no such problem. I work via xrdp and always get this prompt and I cannot disable it. ...
Suncatcher's user avatar
8 votes
2 answers
4k views

Allow user to upgrade installed packages

My users don't have administrative privileges. I don't allow them to install packages from Ubuntu repositories but they must be able to install all updates availables from Ubuntu repositories and my ...
Francis's user avatar
  • 253
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
1 answer
5k views

By default, who is allowed to gain root privileges with pkexec?

I learned today that one can use pkexec from the command line, in a manner similar to sudo, to execute programs with root privileges. I am curious how pkexec decides who is allowed to do this. The ...
Nate Eldredge's user avatar
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.2k
6 votes
3 answers
20k views

Authentication agent and i3wm

How does one turn on an authentication agent like Polkit when using the i3 window manager? I would like to get a password prompt whenever I try to launch an application that requires certain root ...
mstaal's user avatar
  • 459
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
6 votes
2 answers
1k views

How to see what pkaction a software uses

So, I have one software that always asks for password when starting. And I want to run this software without this gksu password prompt popping up everytime. The first thing I tried was adding its ...
PKM's user avatar
  • 829
6 votes
2 answers
2k views

How to make the disk utility ask for password before making modifications?

Currently, I can right click any drive that is attached to the system and click format. No password is asked at all while the data is wiped. I can also format any drive from the disk utility. This ...
nerdy_kid's user avatar
  • 1,005
5 votes
4 answers
12k views

How to make Ubuntu ask for password when mounting partitions?

I have been through this kind of feature in older versions of Ubuntu. When I'd like to mount a partition it will ask me a password. Now I want to enable that kind of feature in Ubuntu 12.04. How can ...
Raja G's user avatar
  • 103k
5 votes
2 answers
2k views

Double query for password when waken up

When I turn on my laptop from sleep, I have to input my password twice. Once there is a white rectangular window (reminds me of gnome) and then lighdm unlock screen. When I dissable "Ask for password ...
Michal Polovka's user avatar
5 votes
1 answer
613 views

What happened to the graphical PolicyKit settings?

Back in 8.04 or so, when PolicyKit was new, we had a GUI "browser" that enabled us to easily decide things like whether a user should be allowed to shutdown the system when other users were logged in ...
Jo-Erlend Schinstad's user avatar
5 votes
1 answer
4k views

polkit: disable all users except those in group wheel?

Is it possible to do the following using 1 polkit .pkla file? Disable all users except those in the wheel group from using polkit. The users in the wheel group will need to provide the root password ...
John Nash's user avatar
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
12k 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,266
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
1 answer
853 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
  • 658
4 votes
1 answer
8k 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
4 votes
1 answer
3k views

Software Center doesn't prompt for password

I'm using Ubuntu 10.10. The software center was asking me for password when I wanted to install/remove any application. Since last week, it doesn't prompt for password. Also, I have the same problem ...
aziz joh's user avatar
  • 123
4 votes
1 answer
7k views

How to prevent Synaptic Package Manager from asking for password?

This is similar to How to prevent system applications (like the Software Center) from asking for password? However that solution does not work for Synaptic Package Manager in 10.04.
deleted's user avatar
  • 2,519
4 votes
1 answer
15k views

Ubuntu 18.04: No polkit authentication agent found

I get the error message above when I try to write to a file I don't have permission to in Visual Studio Code. I choose "Retry as sudo": Click sudo and get the error: Error message This only happens ...
user3496020's user avatar
4 votes
1 answer
308 views

How can I let users in a particular group adjust CPU Frequency Scaling?

I'm trying to let members of the group labmembers adjust the CPU frequency scaling on a system using cpufreq-selector. However, by default, this is restricted to members of the admin group. Per this ...
Phil Miller's user avatar
4 votes
1 answer
8k 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
4k views

polkit-graphical gui

I've recently installed Ubuntu Gnome 16.04, very nice, multiboot with Mate-mint, windows and occasionally hacintosh. The thing which bothers me is that when it asks me password (gui) all other things ...
theo656's user avatar
  • 41
4 votes
2 answers
3k 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
4 votes
0 answers
757 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
145 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
4 votes
0 answers
5k views

Where is the KDE PolicyKit Authorization manager in Kubuntu? [closed]

In order to be able to answer this question, I was looking for a way to manage PolicyKit in KDE. Using Google I quickly ran into the KDE's official Authorization manager (mentioned here and here in ...
gertvdijk's user avatar
  • 68.4k