Centos7,⽆法登陆,输⼊⽤户,未提⽰输⼊密码,直接报
Loginincorrect:
CentOS Linux 7 (core)
Kernel 3.l7.x86_64 on an x86_64
localhost login:root
Login incorrect
Login incorrect
Login incorrect
此问题是由于系统的某些更新引起pam.d/login的变化。我把上⾯/etc/pam.d/login中的两个postlogin以及pam_loginuid.so⼀⾏注释掉就OK 了,暂时不知道这两个模块的验证策略如何。
[root@localhost ~]# cat /etc/pam.d/login
#%PAM-1.0
auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so
auth substack system-auth
# auth include postlogin
account required pam_nologin.so
account include system-auth
记住我password include system-auth
# pam_selinux.so close should be the first session rule
session required pam_selinux.so close
# session required pam_loginuid.so
session optional pam_console.so
# pam_selinux.so open should only be followed by sessions to be executed in the user context
session required pam_selinux.so open
session required pam_namespace.so
session optional pam_keyinit.so force revoke
session include system-auth
# session include postlogin
-session optional pam_ck_connector.so
发布评论