我用来Ctrl + Alt + F1
切换到非图形模式。我仅有的输入我的用户名布莱恩并点击Enter
。屏幕自动显示:
Ubuntu 16.04.6 LTS bryan-5810 tty1
bryan-5810 login: bryan
password:
login incorrect
bryan-5810 login:
login incorrect
bryan-5810 login:
login incorrect
bryan-5810 login:
同时,系统日志(auth.log)显示
Mar 26 20:36:59 bryan-5810 login[5709]: pam_unix(login:auth): conversation failed
Mar 26 20:36:59 bryan-5810 login[5709]: pam_unix(login:auth): auth could not identify password for [bryan]
Mar 26 20:37:02 bryan-5810 login[5709]: FAILED LOGIN (1) on '/dev/tty1' FOR 'bryan', Authentication failure
Mar 26 20:37:02 bryan-5810 login[5709]: pam_securetty(login:auth): cannot determine username
Mar 26 20:37:05 bryan-5810 login[5709]: FAILED LOGIN (2) on '/dev/tty1' FOR 'UNKNOWN', Error in service module
Mar 26 20:37:05 bryan-5810 login[5709]: pam_securetty(login:auth): cannot determine username
Mar 26 20:37:09 bryan-5810 login[5709]: FAILED LOGIN (3) on '/dev/tty1' FOR 'UNKNOWN', Error in service module
Mar 26 20:37:09 bryan-5810 login[5709]: pam_securetty(login:auth): cannot determine username
Mar 26 20:37:12 bryan-5810 login[5709]: FAILED LOGIN (4) on '/dev/tty1' FOR 'UNKNOWN', Error in service module
Mar 26 20:37:12 bryan-5810 login[5709]: pam_securetty(login:auth): cannot determine username
Mar 26 20:37:16 bryan-5810 login[5709]: FAILED LOGIN (5) on '/dev/tty1' FOR 'UNKNOWN', Error in service module
Mar 26 20:37:16 bryan-5810 login[5709]: TOO MANY LOGIN TRIES (5) on '/dev/tty1' FOR 'UNKNOWN'
Mar 26 20:37:16 bryan-5810 login[5709]: pam_mail(login:session): cannot determine username
Mar 26 20:37:16 bryan-5810 login[5709]: pam_unix(login:session): close_session - error recovering username
您能给我一些建议吗?我不知道如何修复这些问题。从日志文件来看,我认为存在问题pam
。感谢您的任何回复。
答案1
我已经解决了这个问题,但我仍然感到困惑。我关注答案。但是我采用了其中的部分:
1. 创建目录:/var/lib/samba
并将自己添加到 samba 密码数据库 ( sudo mkdir -p /var/lib/samba && sudo smbpasswd -a myusername
。2
. sudo pam-auth-update
(所有身份验证模块都已选择,因此我只需单击确定即可使用blankspace
)。3
. 重新启动