Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [policykit]

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

0
votes
0answers
30 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 ...
0
votes
1answer
31 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 ...
0
votes
0answers
18 views

polkit nfs rules

My requirement is that only a certain group of users may mount a particular smb share. Ideally, the mounting would not require superuser privileges. I have looked at polkit and udisks2. I found the ...
0
votes
0answers
249 views

Problem with sound (Policykit and Pulseaudio)

please, I cannot start sound system in my Ubuntu 18.04 LTS (Bionic Beaver). Sound in system doesn't works In journalctl -xb I found this message -- The start-up result is RESULT. jún 17 00:24:13 ...
0
votes
0answers
1k 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 ...
0
votes
0answers
53 views

AUTHENTICATING FOR com.ubuntu.apport.root-info: No session for cookie

I ran the ubuntu-bug command, and it started gathering logs, then showed this in the console: ==== AUTHENTICATING FOR com.ubuntu.apport.root-info === Authentication is required to collect system ...
5
votes
2answers
2k 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. ...
1
vote
0answers
460 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 ...
0
votes
2answers
394 views

How to disable password prompt while mounting partitions?

I'm using ubuntu mini.iso to setup a dual boot system. I've already installed polkit to be able to mount windows(and other ntfs partitions) while using GUI. But every time I try to mount them from ...
0
votes
1answer
348 views

How do I fix the automounting of USB drives after installing Openbox on Ubuntu 16.04?

I am installing Openbox on Ubuntu 16.04 because I need to eliminate the top window bar for the application I am running. This appears to be a good solution except that the system no longer automounts ...
0
votes
0answers
94 views

Disable password prompt for hibernate

I cannot access password prompt that fires during hibernate launch form menu. Here is the screenshot As you can see from the screenshot, the password is prompted in the background and inaccessible by ...
0
votes
1answer
551 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,...
0
votes
1answer
829 views

Make service monit possible for a particular user to start without prompting for password on Ubuntu 16.04

I want to run monit as another user on Ubuntu 16.04, but it keeps prompting for a password. Seems policykit is new on Ubuntu 16.04. How could I put this service into the ignore authentication list? ...
2
votes
1answer
249 views

What does this hard drive authentication after login in LXDE mean?

I am using LXDE on Ubuntu 16.04. When I wake it up from suspension, I login in, and then another authentication window appears. What does that mean? Is it necessary? If not, how can I get rid of the ...
0
votes
0answers
2k 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 ...
2
votes
1answer
121 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/...
4
votes
0answers
446 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 ...
4
votes
0answers
52 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 ...
3
votes
1answer
294 views

Where can I find the source code for ubuntu software center

I'm stuck on an issue with polkit authentication in python. I know USC is written in python and they've implemented that. I'd like to know how they do that part.
1
vote
1answer
374 views

How can I create new “gksu” command based on pkexec?

When I google “gksu gedit” one of the top entries (How to run gedit and nautilus as root) advises that gksu usage is frowned upon: gksu hasn't been updated since 2009 and is not recommendedany more....
4
votes
2answers
222 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 ...
4
votes
2answers
189 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 ...
1
vote
0answers
645 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 ...
5
votes
1answer
4k 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: ...
2
votes
1answer
3k 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
485 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 ...
13
votes
2answers
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?
2
votes
1answer
47 views

Make locally compiled programs request password graphically

I have an application that I downloaded from my class' website for our custom avr robot and it requires root privileges to send our binaries to the robot via usb. When I try to use it with sudo, the ...
1
vote
1answer
106 views

Problems running anything with elevated privileges in GUI

This problem started today. I cannot run any programs with elevated privileges from the Unity GUI. I am in the sudo group, and all of this worked fine yesterday...Ubuntu 14.04 Software Center ...
1
vote
1answer
358 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 ...
1
vote
0answers
446 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-...
3
votes
1answer
669 views

Polkit not accepting my credentials

I am having trouble authenticating via policy kit. Sudo works just fine. In reference to this previous question, here is my output of $ ps aux | grep [p]olkit pkcheck --action-id org.freedesktop....
7
votes
1answer
3k 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 ...
0
votes
1answer
186 views

I messed up permissions in home folder I can not login

Some time ago I had this problem and I found a workaround by issuing following command sudo chmod 777 /dev/dri/card0 and leaving me with this bug. I have been struggling to fix it for a week. ...
3
votes
1answer
5k 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?
5
votes
1answer
1k 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 ...
2
votes
1answer
332 views

Graphical authentication agent doesn't trigger once I changed from desktop environment

I recently switched from Mate to Unity (just installed unity-desktop and removed mate-desktop) with all dependencies and suddenly, the graphical polkit window. For example, when I try to launch ...
1
vote
1answer
4k views

Can't add/remove packages, post-install fails

Something is wrong with policy kit and preventing packages from starting: # apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done 0 upgraded, 0 ...
2
votes
1answer
1k views

Disable editing account info

I have a public desktop running ubuntu 14.04 with a public account (no guest account). People can change the full name of the user through the user accounts GUI. Is there any way to block this? I ...
8
votes
1answer
6k 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 ...
5
votes
0answers
515 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 ...
1
vote
0answers
145 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/...
-2
votes
1answer
1k views

Upgraded to 14.10 - No longer prompted for Privilege Escalation

I upgraded from 14.04 to 14.10. The process was not exactly smooth. I had space errors on /boot so some of the updates failed. I was finally able to get everything update. Now though nothing in ...
21
votes
4answers
7k 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 ...
0
votes
1answer
58 views

Permissions of a new User changed mine

I have a pc which is running Linux Ubuntu 14.04 and few weeks ago a colleague of mine added him to the pc and since then I can do sudo something but I can't perform certain actions like: installing a ...
1
vote
1answer
102 views

Shutdown not working for Users logged in through winbind

I have a Samba server acting as AD/DC and a client authenticating against it. Domain Users can log in and out just fine, shutdown and restart does not work. For Local Users shutdown and restart works....
-1
votes
2answers
1k views

Thunar is unable to mount/unmount partitions correctly

I've got a "NTFS" partition on my Ubuntu machine which I use it to share files between my Ubuntu and Windows. The problem is that I'm not able to mount it using my file manager, the error is: Not ...
2
votes
1answer
1k views

polkit inactive session action/rules never come into effect

I have different issues with polkit not working at all for inactive sessions. Because I think they share the same issue i will post one example first. I have a fresh ubuntu-server 14.04 with lubuntu-...
8
votes
2answers
4k 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","/...