Mageia 5 64bit
KDE\
shutdown button clicks, nothing happens
MCC menu icon clicks menu hide, no result
loginctl show-session $XDG_SESSION_ID
ps -ef|grep -v grep|grep -iE "polkit|policykit"
pkexec whoami # you need to enter your root password when asked by the authentication dialog
echo $DISPLAY
systemctl status polkit.service -a
[logar@localhost ~]$ loginctl show-session $XDG_SESSION_ID
Id=c1
Name=logar
Timestamp=Thu 2016-05-26 08:45:25 PDT
TimestampMonotonic=37963474
VTNr=2
Display=:0
Remote=no
Service=kdm
Scope=session-c1.scope
Leader=1007
Audit=0
Type=x11
Class=user
Active=yes
State=active
IdleHint=no
IdleSinceHint=0
IdleSinceHintMonotonic=0
[logar@localhost ~]$ ps -ef|grep -v grep|grep -iE "polkit|policykit"
polkitd 2087 1 0 May26 ? 00:00:00 /usr/lib/polkit-1/polkitd --no-debug
[logar@localhost ~]$ pkexec whoami # you need to enter your root password when asked by the authentication dialog
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/whoami' as the super user
Authenticating as: root
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
[logar@localhost ~]$ su
Password:
[root@localhost logar]# systemctl status polkit.service -a
● polkit.service - Authorization Manager
Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
Active: active (running) since Thu 2016-05-26 08:45:32 PDT; 24h ago
Docs: man:polkit(8)
Main PID: 2087 (polkitd)
CGroup: /system.slice/polkit.service
└─2087 /usr/lib/polkit-1/polkitd --no-debug
May 26 08:45:32 localhost polkitd[2087]: Started polkitd version 0.113
May 26 08:45:32 localhost polkitd[2087]: Loading rules from directory /etc/polkit-1/rules.d
May 26 08:45:32 localhost polkitd[2087]: Loading rules from directory /usr/share/polkit-1/rules.d
May 26 08:45:32 localhost polkitd[2087]: Finished loading, compiling and executing 5 rules
May 26 08:45:32 localhost polkitd[2087]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
May 27 09:41:06 localhost polkitd[2087]: Registered Authentication Agent for unix-process:6460:8977234 (system bus name :1.51 [pkexec whoami], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
May 27 09:41:17 localhost polkitd[2087]: Operator of unix-process:6460:8977234 FAILED to authenticate to gain authorization for action org.freedesktop.policykit.exec for unix-process:6460:8977234 [/bin/bash] (owned by unix-user:logar)
May 27 09:41:17 localhost polkitd[2087]: Unregistered Authentication Agent for unix-process:6460:8977234 (system bus name :1.51, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
[root@localhost logar]#
Garthhh wrote:[logar@localhost ~]$ ps -ef|grep -v grep|grep -iE "polkit|policykit"
polkitd 2087 1 0 May26 ? 00:00:00 /usr/lib/polkit-1/polkitd --no-debug
[logar@localhost ~]$
[logar@localhost ~]$ drakboot
==== AUTHENTICATING FOR org.mageia.drakboot.pkexec.run ===
Authentication is required to run Mageia Boot Configuration
Authenticating as: root
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
[logar@localhost ~]$
su -
doktor5000 wrote:You'd probably need to switch to a different polkit agent, but I'd need to look that up first and verify that it's working.
In the meantime you could try to reboot and check the output of ps -ef|grep -v grep|grep -iE "polkit|policykit" again to see whether a polkit agent is running, apart from the polkit system daemon /usr/lib/polkit-1/polkitd.
[logar@localhost ~]$ ps -ef|grep -v grep|grep -iE "polkit|policykit"
polkitd 1995 1 0 10:52 ? 00:00:00 /usr/lib/polkit-1/polkitd --no-debug
[logar@localhost ~]$
Garthhh wrote:thank thats good
how do I go about fixing the kde policy kit malfunction?
urpmi --replacepkgs --clean lib64mate-polkit1_0 lib64polkit-gir1.0 lib64polkit-qt-agent-1_1 lib64polkit-qt-core-1_1 lib64polkit1_0 mate-polkit polkit polkit-kde-agent-1
Users browsing this forum: No registered users and 1 guest