簡體   English   中英

非法的模塊類型:etc / login.defs

[英]illegal module type: etc/login.defs

我正在使用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] 4月25日06:56:53 xxxx polkit-agent-helper-1 [4529]:PAM(polkit-1)非法模塊類型:etc / login.defs 4月25日06:56:53 xxxx polkit- agent-helper-1 [4529]:PAM pam_parse:期望返回值; [... to] 4月25日06:56:53 xxxx polkit-agent-helper-1 [4530]:PAM(polkit-1)非法模塊類型:etc / login.defs 4月25日06:56:53 xxxx polkit- agent-helper-1 [4530]:PAM pam_parse:期望返回值; [...到] 4月25日06:56:53 xxxx polkitd(authority = local):unix-session:c2的操作員失敗以進行身份​​驗證以獲取對unix-process:2310的操作org.freedesktop.policykit.exec的授權: 5776 [bash](由unix-user:computer_user擁有)

任何見解或幫助將不勝感激!

好的,所以經過一番觀察,我意識到我的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

...一旦我注釋掉第一行,一切便開始工作:-|

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM