KDE(Plasma)登录失败的解决

近几日全面更新了系统,一共下载了六个多G,而更新系统之后也在忙着做其他的事情。不过今天上午发现,当我锁屏之后,就再也不能按照正常流程(输入正确的密码->登录->进入会话)登入会话了。即便是输入正确的密码,也会出现“Authenticcation Failure”。要想重新登入,只能切换到其他的终端使用loginctl来解决

$ > loginctl unlock-session <username>

如果使用root来进行上述操作的话,就不会有什么问题,再切回图形终端,就可以正常登入。

登入之后,检查journal,发现

Dec 26 18:39:23 pret-arch kcheckpass[16147]: pam_tally(kde:auth): Error opening /var/log/faillog for update
Dec 26 18:39:23 pret-arch kcheckpass[16147]: pam_tally(kde:auth): Error opening /var/log/faillog for read
Dec 26 18:39:23 pret-arch unix_chkpwd[16167]: check pass; user unknown
Dec 26 18:39:23 pret-arch unix_chkpwd[16168]: check pass; user unknown
Dec 26 18:39:23 pret-arch unix_chkpwd[16168]: password check failed for user (pretdb)
Dec 26 18:39:23 pret-arch kcheckpass[16147]: pam_unix(kde:auth): authentication failure; logname= uid=1000 euid=1000 tty=:0 ruser= rhost=  user=pretdb
Dec 26 18:39:23 pret-arch kcheckpass[16147]: Authentication failure for pretdb (invoked by uid 1000)
Dec 26 18:39:24 pret-arch org_kde_powerdevil[2732]: powerdevil: ACTIVE SESSION PATH CHANGED: "/org/freedesktop/login1/session/c3"
Dec 26 18:39:24 pret-arch org_kde_powerdevil[2732]: powerdevil: Current session is now inactive
Dec 26 18:39:25 pret-arch python3[2923]: QXcbConnection: XCB error: 11 (BadAlloc), sequence: 4278, resource id: 664, major code: 53 (CreatePixmap), minor code: 0
Dec 26 18:39:25 pret-arch python3[2923]: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 4279, resource id: 83886279, major code: 55 (CreateGC), minor code: 0

而在一开始的部分将矛头指向了kcheckpass,journal表明没有设置uid。按照下列方法进行设置:

$ chmod +s /usr/lib/kcheckpass

(上述操作可能需要root权限)

执行完上述操作后,就可以正常解锁屏幕了。

分享到: