0

我正在使用 Ubuntu 16.04.2 LTS,并且在互联网上多次提到“抖动身份验证窗口”问题,特别是在这里:

https://ubuntuforums.org/showthread.php?t=1761052&p=11267228#post11267228

在这里: http ://www.dahoba.xyz/2011/08/ubuntu-fix-cant-authenticate.html?m=1

它的长短是需要root privs的命令的身份验证窗口可能会出现一秒钟,来回摇晃,然后消失。

我经常遇到的一个推荐解决方案是:

“sudo chmod +s /usr/lib/policykit-1/polkit-agent-helper-1”

但这对我不起作用

这是我认为是我的 auth.log 的相关部分(注意时间,窗口字面上闪烁):

4 月 25 日 06:56:53 xxxx polkit-agent-helper-1 [4527]:PAM (polkit-1) 非法模块类型:etc/login.defs 4 月 25 日 06:56:53 xxxx polkit-agent-helper-1 [ 4527]:PAM pam_parse:期望返回值;[...to] Apr 25 06:56:53 xxxx polkit-agent-helper-1[4529]:PAM (polkit-1) 非法模块类型:etc/login.defs Apr 25 06:56:53 xxxx polkit- agent-helper-1[4529]:PAM pam_parse:期望返回值;[...to] Apr 25 06:56:53 xxxx polkit-agent-helper-1[4530]:PAM (polkit-1) 非法模块类型:etc/login.defs Apr 25 06:56:53 xxxx polkit- agent-helper-1 [4530]:PAM pam_parse:期望返回值;[...to] Apr 25 06:56:53 xxxx polkitd(authority=local): unix-session:c2 的操作员无法进行身份验证以获得对 unix-process:2310 的操作 org.freedesktop.policykit.exec 的授权: 5776 [bash](归 unix-user:computer_user 所有)

任何见解或帮助将不胜感激!

4

1 回答 1

0

好的,经过一番查看,我意识到我的 polkit-1 看起来像这样:

    etc/login.defs to make sure that removing a user
    # also removes the user's mail spool file.
    # See comments in /etc/login.defs
    session    optional   pam_mail.so standard
    # Standard Un*x account and session
    @include common-account
    @include common-session

...一旦我注释掉第一行,一切都开始工作了:-|

于 2017-06-01T13:21:17.690 回答