![Lightdm 有时无法自动登录](https://linux22.com/image/216409/Lightdm%20%E6%9C%89%E6%97%B6%E6%97%A0%E6%B3%95%E8%87%AA%E5%8A%A8%E7%99%BB%E5%BD%95.png)
我们有一些使用 lightdm 和自动登录的信息亭。自动登录有时不起作用,这种情况在重新启动后随机发生,大多数情况下可以工作,但有时会失败。出现的不是自动登录,而是登录屏幕。用户需要输入登录名和密码,这在信息亭上是不好的。
当它失败时我可以看到journalctl -u lightdm
:
úno 01 04:00:39 rockpi-4b systemd[1]: Starting Light Display Manager...
úno 01 04:00:39 rockpi-4b lightdm[580]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
úno 01 04:00:39 rockpi-4b systemd[1]: Started Light Display Manager.
úno 01 04:00:41 rockpi-4b lightdm[785]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
úno 01 04:00:41 rockpi-4b lightdm[785]: pam_unix(lightdm-greeter:session): session opened for user lightdm by (uid=0)
úno 01 09:01:22 rockpi-4b lightdm[2689]: pam_unix(lightdm:auth): check pass; user unknown
úno 01 09:01:22 rockpi-4b lightdm[2689]: pam_unix(lightdm:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost=
当我重新启动 lightdm 时,systemctl restart lightdm
它开始工作(自动登录成功):
úno 01 09:52:16 rockpi-4b systemd[1]: Starting Light Display Manager...
úno 01 09:52:16 rockpi-4b lightdm[3180]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
úno 01 09:52:16 rockpi-4b systemd[1]: Started Light Display Manager.
úno 01 09:52:17 rockpi-4b lightdm[3205]: Error getting user list from org.freedesktop.Accounts: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.Accounts was not provided by any .service files
úno 01 09:52:17 rockpi-4b lightdm[3205]: pam_unix(lightdm-autologin:session): session opened for user pi by (uid=0)
那是什么意思pam_unix错误?
pam_unix(lightdm:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost=
我在 rockpi-4b(内核 5.10.103+)上使用 debian buster aarch64
我该如何修复该错误,是错误还是之间的某些配置错误帕姆和光DM?