You are not logged in.

#1 2021-11-26 06:24:19

linya
Member
Registered: 2021-02-16
Posts: 1

error response to PolicyKit daemon: GDBus.Error:org.freedesktop.Policy

After installing the new system, when I excute the command

yay -S visual-studio-code-bin

I have never seen the problem.

There are some message in the shell.

==== AUTHENTICATING FOR org.freedesktop.policykit.exec ====
Authentication is needed to run `/usr/bin/pacman' as the super user
Authenticating as: john
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

There are some message in journalctl.

audit[103045]: USER_AUTH pid=103045 uid=1000 auid=1000 ses=5 msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="john" exe="/usr/lib/polkit-1/polkit-agent-helper-1" hostname=lenovo.laptop addr=? terminal=pts/1 res=success'
polkit-agent-helper-1[103045]: pam_systemd_home(polkit-1:account): Not a user managed by systemd-homed: No home for user john known
audit[103045]: USER_ACCT pid=103045 uid=1000 auid=1000 ses=5 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="john" exe="/usr/lib/polkit-1/polkit-agent-helper-1" hostname=? addr=? terminal=? res=success'
kernel: audit: type=1100 audit(1637905118.921:218): pid=103045 uid=1000 auid=1000 ses=5 msg='op=PAM:authentication grantors=pam_faillock,pam_permit,pam_faillock acct="john" exe="/usr/lib/polkit-1/polkit-agent-helper-1" hostname=lenovo.laptop addr=? terminal=pts/1 res=success'
kernel: audit: type=1101 audit(1637905118.921:219): pid=103045 uid=1000 auid=1000 ses=5 msg='op=PAM:accounting grantors=pam_unix,pam_permit,pam_time acct="john" exe="/usr/lib/polkit-1/polkit-agent-helper-1" hostname=? addr=? terminal=? res=success'
polkitd[10160]: Operator of unix-process:102298:452729 FAILED to authenticate to gain authorization for action org.freedesktop.policykit.exec for unix-process:102298:452729 [yay -S google-chrome] (owned by unix-user:john)
pkexec[103041]: john: Error executing command as another user: Not authorized [USER=root] [TTY=/dev/pts/1] [CWD=/home/john] [COMMAND=/usr/bin/pacman -S --config /etc/pacman.conf -- community/ttf-liberation]
polkitd[10160]: Unregistered Authentication Agent for unix-process:102298:452729 (system bus name :1.72, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)

Offline

Board footer

Powered by FluxBB