Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 423487 - sys-auth/polkit: pkexec has PAM errors with default config
Summary: sys-auth/polkit: pkexec has PAM errors with default config
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Freedesktop bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-25 17:07 UTC by Doug Goldstein (RETIRED)
Modified: 2012-06-27 10:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Goldstein (RETIRED) gentoo-dev 2012-06-25 17:07:20 UTC
Default config, haven't touched a thing (haven't even added my user to 'adm'). When I enter the correct root password I get:

$ pkexec /bin/sh
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/bin/sh' as the super user
Authenticating as: root
Password: 
==== AUTHENTICATION COMPLETE ===
**
ERROR:pkexec.c:138:pam_conversation_function: code should not be reached
Aborted

When I enter the wrong password I get:


$ pkexec /bin/sh
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/bin/sh' as the super user
Authenticating as: root
Password: 
polkit-agent-helper-1: pam_authenticate failed: Authentication failure
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized

This incident has been reported.


Which is correct.
Comment 1 Maciej Gierok 2012-06-25 20:05:19 UTC
Probably the same situation here:

pkexec xfpm-power-backlight-helper --set-brightness 4
**
ERROR:pkexec.c:138:pam_conversation_function: code should not be reached

Canot chenge brightness level on XFCE4
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2012-06-27 10:24:33 UTC
Yeah, s/system-local-login/system-auth/ for /etc/pam.d/polkit-1

+*polkit-0.106-r5 (27 Jun 2012)
+
+  27 Jun 2012; Samuli Suominen <ssuominen@gentoo.org> +polkit-0.106-r5.ebuild:
+  Revert entire unix-group:wheel experiment back to unix-user:0 because
+  PolicyKit agent(s) don't behave correctly with it wrt #423733 by Travis
+  Hansen. Revert system-local-login to system-auth for PAM errors wrt #423487
+  by Doug Goldstein.