This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to fix polkit-kde-1?

Tags: None
(comma "," separated)
Windoze
Registered Member
Posts
8
Karma
0

How to fix polkit-kde-1?

Sun Jul 19, 2015 10:56 pm
I am running Ubuntu 14.04 with KDE 4 in a chroot environment (Using crouton on a Chromebook). Whenever I use Muon Package Manager, I get the error message:

This operation cannot continue since proper authorization was not provided.

I researched this problem on the internet, but I can't find a solution. I read that you need to install the package polkit-kde-1, but I have it installed. I've also researched that this is a service. Usually to start a service on my chroot I need to edit the rc.local file and put in the service name to start when I enter the chroot. But I don't know what to type into rc.local to make this service work. Any help would be appreciated!
luebking
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 1:18 pm
Policykit is a dbus service, check "qdbus --system org.freedesktop.PolicyKit1"
Actions and rules are usually located in /usr/share/polkit-1, you need the muon thing there - if it is and the server responds, the muon actions may require you to be in a certain group ("wheel")
Windoze
Registered Member
Posts
8
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 5:05 pm
luebking wrote:Policykit is a dbus service, check "qdbus --system org.freedesktop.PolicyKit1"
Actions and rules are usually located in /usr/share/polkit-1, you need the muon thing there - if it is and the server responds, the muon actions may require you to be in a certain group ("wheel")


What do you mean by "you need the muon thing there". Because I ran that command, but it did not fix anything.
luebking
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 5:18 pm
Applications drop their policies in those directories - muon on ubuntu should require /usr/share/polkit-1/actions/org.kubuntu.qaptworker.policy (but I don't know for sure; simply make sure that your chrooted environment has the polkit actions and policies)

The command "qdbus --system org.freedesktop.PolicyKit1" is *not* supposed to "fix" anything, but to ensure that the polkit daemon responds in your environment.
Windoze
Registered Member
Posts
8
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 5:31 pm
Here is a screenshot of my actions folder:

Screenshot

Am I missing anything important?
luebking
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 5:41 pm
If this is your chrooted environment, probably not, given (?) the server accessible from your chrroted environment (the command should print the interface of the server).

2 things:
a) the folder is only root readable - does that mean you're operating as root user?
b) "sudo ls -1 /usr/share/polkit-1/actions" - you don't need to post screenshots to list dir contents

qaptworker2 is likely the interesting action, check the permission requirements in it and whether your user matches them (it will probably allow some users or groups unconditional execution and require a password from other users/groups - everyone else will be denied)
Windoze
Registered Member
Posts
8
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 5:47 pm
I am not running as a root user.

I looked at the properties of the file and no one, even the root account has executable access, but it has read and write. Other users only have read access.
luebking
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 5:49 pm
It's not about the file permissions, but what's written inside the file.
It controls access to certain commands.
Windoze
Registered Member
Posts
8
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 5:53 pm
I read through the files and I saw that all the other files have text written in them like:

"To view the list of trusted keys, you must authenticate"

but when I look at the qaptworker2 file all it says is: Kubuntu http://www.kubuntu.org package-x-generic at the beginning, and the whole rest of the file is text in a bunch of different languages...
Windoze
Registered Member
Posts
8
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 5:56 pm
http://pastebin.com/RJJwAmMt

This is the whole qaptworker2 file.
luebking
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 5:59 pm
No, that's a wonky xml representation - but the file is not meant to be interpreted by a browser.
Open it in a texteditor or just "less" and check the "defaults" sections.
Windoze
Registered Member
Posts
8
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 6:04 pm
<defaults>
<allow_inactive>no</allow_inactive>
<allow_active>auth_admin_keep</allow_active>
</defaults>

Are these the correct settings for the "defaults" section?
luebking
Karma
0

Re: How to fix polkit-kde-1?

Mon Jul 20, 2015 10:37 pm
You may want to try
Code: Select all
<allow_inactive>auth_admin</allow_inactive>


The typical case for inactive are remote sessions (ssh, vnc) - but I frankly don't know how chroot impacts this.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft