You are not logged in.

#1 2014-01-03 20:56:02

Elderon
Member
Registered: 2013-08-20
Posts: 14

KDE authentication polkit doesn't work

Hi, when I try to change administrator settings in kde or trying to launch gparted it's not accepting my (root) password and after a while I got error as shown below:

Unable to authenticate/execute the action: 7, DBus Backend error: could not contact the helper. Connection error: The name org.freedesktop.ConsoleKit was not provided by any .service files. Message error: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken

I'm using kde and kdm and ksudo is working fine.

Last edited by Elderon (2014-01-03 21:06:21)

Offline

#2 2014-01-06 12:40:39

bb1898
Member
Registered: 2014-01-06
Posts: 4

Re: KDE authentication polkit doesn't work

Same problem here, on a freshly created VirtualBox guest with ArchLinux (64bit), using KDE and KDM (not yet tried ksudo). The message looks as if KDE still wants ConsoleKit which has been removed. But "Any package that previously depended on it now relies on systemd-logind instead.". So I would have expected no problems with a fresh install; I've followed the instructions in the Display Manager wiki article, but it seems that doesn't suffice.
What additional information should I provide?

Offline

#3 2014-01-06 17:30:21

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: KDE authentication polkit doesn't work

Do you guys have an active logind session? do loginctl list-sessions to see what session number you have, then loginctl show-session <session number>. It should list Active=yes.

If it does, try adding the following to /etc/pam.d/polkit-1:

session	 optional	pam_xauth.so

Edit, forgot to ask, do you both have a polkit authentication agent installed and running?

Last edited by Scimmia (2014-01-06 17:40:01)

Offline

#4 2014-01-06 21:24:28

Elderon
Member
Registered: 2013-08-20
Posts: 14

Re: KDE authentication polkit doesn't work

Do you guys have an active logind session? do loginctl list-sessions to see what session number you have, then loginctl show-session <session number>. It should list Active=yes.

Yes, it's active.

loginctl show-session 3
Id=3
Timestamp=Mon 2014-01-06 22:08:55 CET
TimestampMonotonic=62596258
VTNr=7
Display=:0
Remote=no
Service=kde
Scope=session-3.scope
Leader=708
Audit=3
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0

If it does, try adding the following to /etc/pam.d/polkit-1:

It didn't help.

Edit, forgot to ask, do you both have a polkit authentication agent installed and running?

Yes:

polkit.service                                                       loaded active running   Authorization Manager

Or did you mean polkit-kde? I have it installed but I can't find if it's running or not.

Last edited by Elderon (2014-01-06 21:34:07)

Offline

#5 2014-01-06 22:44:06

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: KDE authentication polkit doesn't work

polkitd (polkit.service) is not an authentication agent. polkit-kde would do it, if it's actually running. "ps ax | grep polkit" will tell you what you've got.

Offline

#6 2014-01-06 23:12:29

Elderon
Member
Registered: 2013-08-20
Posts: 14

Re: KDE authentication polkit doesn't work

Well it seems it's running:

ps ax | grep polkit
  260 ?        Ssl    0:00 /usr/lib/polkit-1/polkitd --no-debug
  889 ?        Sl     0:00 /usr/lib/kde4/libexec/polkit-kde-authentication-agent-1
2300 pts/2    S+     0:00 grep polkit

Offline

#7 2014-01-06 23:27:53

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: KDE authentication polkit doesn't work

I'm out of ideas, then. I haven't run KDE since before the consolekit/logind switch.

Offline

#8 2014-01-06 23:29:36

okubax
Member
From: Kent, UK.
Registered: 2010-04-24
Posts: 210
Website

Re: KDE authentication polkit doesn't work

This works for me, for gparted at least

kdesu gparted

Offline

#9 2014-01-07 19:42:09

bb1898
Member
Registered: 2014-01-06
Posts: 4

Re: KDE authentication polkit doesn't work

Scimmia wrote:

Do you guys have an active logind session? do loginctl list-sessions to see what session number you have, then loginctl show-session <session number>. It should list Active=yes.

If it does, try adding the following to /etc/pam.d/polkit-1:

session	 optional	pam_xauth.so

Edit, forgot to ask, do you both have a polkit authentication agent installed and running?

Active logind session: yes. /usr/lib/kde4/libexec/polkit-kde-authentication-agent-1 present and running. Putting the above into /etc/pam.d/polkit-1 seems to have had quite bad effects: afterwards KDE started but freezed (mouse movable but no reaction to clicking anything), ctrl-alt-del got the dialog for shutdown / reboot, but now while shutdown seems in (extremely slow) progress I get one message

BUG: soft lockup - CPU#0 stuck for 23s!

after the other. Pretty ugly.

Offline

#10 2014-01-07 20:31:24

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: KDE authentication polkit doesn't work

That's strange. Adding that line to the polkit pam file a suggestion from upstream: https://bugs.kde.org/show_bug.cgi?id=299718

Offline

#11 2014-01-08 23:35:20

Human_19
Member
Registered: 2013-12-23
Posts: 9

Re: KDE authentication polkit doesn't work

a guess
from your code:
The name org.freedesktop.ConsoleKit was not provided by any .service files.

from http://www.freedesktop.org/wiki/Software/ConsoleKit/
"ConsoleKit is currently not actively maintained. The focus has shifted to the built-in seat/user/session management of Software/systemd called systemd-logind!"

do you have systemd-logind.service enabled?

Offline

#12 2014-01-09 09:36:13

Elderon
Member
Registered: 2013-08-20
Posts: 14

Re: KDE authentication polkit doesn't work

Yes:

systemd-logind.service                                               loaded active running   Login Service

Offline

#13 2014-01-17 06:05:06

erisb
Member
Registered: 2014-01-17
Posts: 1

Re: KDE authentication polkit doesn't work

I didn't make any of the changes above. However, I did manage to get this to work.

I'm using lightdm with the kde greeter, and before installing xorg-xauth, I too was getting the bizarre errors and getting rather frustrated with the "remember" checkbox not doing anything. After installing xorg-xauth, it all works fine.

# pacman -S xorg-xauth

Seriously, once xauth is available, the kde system settings applet started caching passwords when I select "remember".

Offline

Board footer

Powered by FluxBB