Questions tagged [policykit]

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

Notable questions

164 questions
86
votes
3 answers

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 is a graphical frontend for PolicyKit. When…
Eliah Kagan
  • 119,640
52
votes
5 answers

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 willing to take the risk. Fedora 12 shipped with…
dieki
  • 3,412
38
votes
2 answers

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 years, more and more stuff that once used sudo has…
35
votes
2 answers

/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,,, (tuc) Password: …
32
votes
2 answers

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 closing the lid. However, this doesn't work when…
arauzo
  • 1,098
29
votes
1 answer

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?
23
votes
4 answers

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 random times, though it seems to get triggered by my…
itsadok
  • 2,934
22
votes
2 answers

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 basis? I've seen a great method to prevent…
thomasrutter
  • 37,804
19
votes
3 answers

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 users to turn off networking?
19
votes
4 answers

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","/home/gabriel/test"]); if (action.id ==…
Keidax
  • 811
17
votes
1 answer

Disable authentication prompts in 15.04 and later versions?

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 changed something and now I keep getting prompted.…
17
votes
6 answers

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 login screen on 14.04?
17
votes
7 answers

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 confirmation instead, or even without any confirmation. At…
Ivan
  • 58,745
17
votes
4 answers

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 the fingerprint login, but the error is: Could…
13
votes
2 answers

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
  • 147
  • 1
  • 4
1
2 3
10 11