Authentication failed when typing the password for the first time in Pamac/Manjaro Settings Manager

Hi! :slight_smile:

After the latest update I seem to be having some troble when authenticating via GUIs in KDE. The password works fine in terminal-based apps but always fails when typing it for the first time in e.g. Pamac or Kernel updater in Manjaro Settings Manager. It works, however, when I type it for the second time.

Polkit looks like this:

● polkit.service - Authorization Manager
     Loaded: loaded (/usr/lib/systemd/system/polkit.service; static)
     Active: active (running) since Thu 2024-05-23 20:03:51 CEST; 6min ago
       Docs: man:polkit(8)
   Main PID: 566 (polkitd)
      Tasks: 4 (limit: 19027)
     Memory: 7.6M (peak: 9.6M)
        CPU: 847ms
     CGroup: /system.slice/polkit.service
             └─566 /usr/lib/polkit-1/polkitd --no-debug

May 23 20:03:51 pareto polkitd[566]: Finished loading, compiling and executing 7 rules
May 23 20:03:51 pareto systemd[1]: Started Authorization Manager.
May 23 20:03:51 pareto polkitd[566]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
May 23 20:04:06 pareto polkitd[566]: Registered Authentication Agent for unix-session:2 (system bus name :1.44 [/usr/lib/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)
May 23 20:05:31 pareto polkitd[566]: Unregistered Authentication Agent for unix-session:2 (system bus name :1.44, object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8) (disconnected from bus)
May 23 20:05:31 pareto polkitd[566]: Operator of unix-session:2 FAILED to authenticate to gain authorization for action org.manjaro.pamac.commit for system-bus-name::1.69 [/usr/bin/pamac-manager --gapplication-service] (owned by unix-user:xxx)
May 23 20:05:31 pareto polkitd[566]: Registered Authentication Agent for unix-session:2 (system bus name :1.75 [/usr/lib/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)
May 23 20:05:54 pareto polkitd[566]: Operator of unix-session:2 successfully authenticated as unix-user:xxx to gain TEMPORARY authorization for action org.manjaro.pamac.commit for system-bus-name::1.69 [/usr/bin/pamac-manager --gapplication-service] (owned by unix-user:xxx)
May 23 20:05:54 pareto polkitd[566]: Unregistered Authentication Agent for unix-session:2 (system bus name :1.75, object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8) (disconnected from bus)
May 23 20:05:54 pareto polkitd[566]: Registered Authentication Agent for unix-session:2 (system bus name :1.81 [/usr/lib/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_GB.UTF-8)

I checked and rechecked - I always type it correctly, but the first attempt after opening an application always fails. The second attempt always works.

Really strange. I’ll have to check on mine, but try adding a few characters then deleting and adding your correct password just in case the field isn’t completely clear … and see if using the GUI “OK” rather than hitting Enter makes any difference? … at least one application on my system wouldn’t take the password with the latter. (It’s good practice, anyway, IMHO).

I don’t suppose a copy & paste worked, if you tried that?

it’s this bug - polkit-kde-agent crashes with nullptr (only for some pc), fixed in 6.0.5 in testing branch

Workaround ?
before use polkit, run /usr/lib/polkit-kde-authentication-agent-1 &

2 Likes

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.