我的 Linux 计算机属于使用 Windows 域的公司网络。身份验证是使用 kerberos 完成的。
通常身份验证工作正常,我对我的 Linux 桌面很满意。但有时我会遇到登录问题。等待一段时间(10-20 分钟)并重新启动几次后,登录再次正常。
当问题发生时,var/log/auth.log
当我尝试登录时,尾随仅给出以下日志:
Feb 18 07:58:15 localhost lightdm: pam_krb5(lightdm:auth): user naitsirch authenticated as [email protected]
Feb 18 07:58:15 localhost lightdm: pam_unix(lightdm:account): could not identify user (from getpwnam(naitsirch))
所提供的密码绝对正确。 pam_krb5 似乎已成功验证。
如果我故意输入错误的密码,我会收到以下日志条目:
Feb 18 07:58:24 localhost lightdm: pam_krb5(lightdm:auth): authentication failure; logname=naitsirch uid=0 euid=0 tty=:0 ruser= rhost=
Feb 18 07:58:24 localhost lightdm: pam_unix(lightdm:auth): check pass; user unknown
Feb 18 07:58:24 localhost lightdm: pam_unix(lightdm:auth): authentication failure; logname= uid=0 euid=0 tty=:0 ruser= rhost=
Feb 18 07:58:24 localhost lightdm: pam_winbind(lightdm:auth): getting password (0x00004388)
Feb 18 07:58:24 localhost lightdm: pam_winbind(lightdm:auth): pam_get_item returned a password
后来,重新启动并等待几分钟后,我再次可以成功登录。在这种情况下,我得到了这个日志:
Feb 18 08:06:31 localhost lightdm: pam_krb5(lightdm:auth): user naitsirch authenticated as [email protected]
Feb 18 08:06:31 localhost lightdm: pam_unix(lightdm-greeter:session): session closed for user lightdm
Feb 18 08:06:31 localhost systemd-logind[573]: Removed session c1.
Feb 18 08:06:31 localhost lightdm: pam_unix(lightdm:session): session opened for user naitsirch(uid=10051) by (uid=0)
Feb 18 08:06:31 localhost systemd-logind[573]: New session 10 of user naitsirch.
Feb 18 08:06:31 localhost systemd: pam_unix(systemd-user:session): session opened for user naitsirch(uid=10051) by (uid=0)
Feb 18 08:06:33 localhost polkitd(authority=local): Registered Authentication Agent for unix-session:10 (system bus name :1.59 [/usr/lib/x86_64-linux-gnu/libexec/polkit-kde-authentication-agent-1], object path /org/kde/PolicyKit1/AuthenticationAgent, locale de_DE.UTF-8)
看起来在身份验证过程中pam_unix
有时会受到干扰。pam_krb5
我尝试登录的用户帐户是不是包含在/etc/passwd
或中/etc/shadow
。
知道为什么会发生这种情况吗?