You are not logged in.

#1 2012-08-06 19:40:08

johni
Member
Registered: 2012-02-03
Posts: 102

KDE and PolicyKit

I am having problems getting the kde "system-settings->Login Screen" settings to allow me to save my changes as a regular user. Every time I leave the configuration and hit "Apply", I get a popup saying "Unable to authenticate/execute the action: (code 4)"

I know this is a fairly common problem, and many searches show that running system-settings with kdesu will allow it to be changed.   I feel this is not the real answer though.   From what I understand via the PolicyKit feature, I should be able to authorize users to do such things.
Perhaps I am not understanding some configuration I need to do with PolicyKit to make this happen.

I looked in /etc/polkit-1/localauthority.conf.d/50-localauthority.conf:

# Configuration file for the PolicyKit Local Authority.
#
# DO NOT EDIT THIS FILE, it will be overwritten on update.
#
# See the pklocalauthority(8) man page for more information
# about configuring the Local Authority.
#

[Configuration]
AdminIdentities=unix-group:wheel

My user, IS a member of the "wheel" group, so shouldn't that authorize me to do this?

I did some further reading, and thought I would try to specifically specify the kde action, so I made a /etc/polkit-1/localauthority.conf.d/60-localperms.conf:

[Allow kde kdm editing]
Identity=unix-group:wheel
Action=org.kde.kcontrol.kcmkdm.*
ResultActive=yes

That didn't work either.

I verified that I stated kde with ck-launch-session in my .xinitrc:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

# disable beeps!
xset -b
                                                                                
# exec gnome-session                                                            
# exec startkde                                                                 
# exec startxfce4                                                               
# ...or the Window Manager of your choice                                       
#startxfce4                                                                     
exec ck-launch-session startkde

Here is the output of "ck-list-sessions" if it is of any help:

Session3:
        unix-user = '518'
        realname = 'John Morris'
        seat = 'Seat1'
        session-type = ''
        active = TRUE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2012-08-06T18:58:35.065581Z'
        login-session-id = '4294967295'
Session4:
        unix-user = '518'
        realname = 'John Morris'
        seat = 'Seat1'
        session-type = ''
        active = FALSE
        x11-display = ':0'
        x11-display-device = '/dev/tty7'
        display-device = ''
        remote-host-name = ''
        is-local = TRUE
        on-since = '2012-08-06T18:58:35.318675Z'
        login-session-id = '4294967295'

I am at a loss as to what to try next.  Can anyone help?

Offline

#2 2013-01-14 00:34:56

slytux
Member
From: New York
Registered: 2010-09-25
Posts: 139

Re: KDE and PolicyKit

kdesu system-settings

is not working anymore either so I can't change my kdm theme to a custom arch one.

Offline

#3 2013-01-14 01:02:16

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: KDE and PolicyKit

You'd either be using systemd's logind or have kdebase-workspace-consolekit installed.

Offline

Board footer

Powered by FluxBB