执行CIS加固配置账户锁定后无法登录系统求助
执行CIS加固配置账户锁定后无法登录系统求助
各位大佬紧急求助!我最近按照CIS 5.4.2的要求配置系统账户锁定(用faillock),结果配置完重启系统后,不管是root账户还是其他普通账户,哪怕输入正确密码也完全登不上了,现在系统直接卡在这里,急得不行!
这是我修改后的/etc/pam.d/common-auth文件内容(后面的省略内容就不贴了):
# /etc/pam.d/common-auth - authentication settings common to all services # # This file is included from other service-specific PAM config files, # and should contain a list of the authentication modules that define # the central authentication scheme for use on the system # (e.g., /etc/shadow, LDAP, Kerberos, etc.). The default is to use the # traditional Unix authentication mechanisms. # # As of pam 1.0.1-6, this file is managed by pam-auth-update by default. # To take advantage of this, it is recommended that you configure any # local modules either before or after the default block, and use # pam-auth-update to manage selection of other modules. See # pam-auth-update(8) for details. # here are the per-package modules (the "Primary" block) auth [success=1 default=ignore] pam_unix.so #...(剩余配置内容省略)
我怀疑是PAM的规则配置出了问题,但翻来覆去检查也没找到具体错误点,有没有大佬能给我指个排查方向,或者直接告诉我怎么修复这个问题,让我能重新登录系统?
备注:内容来源于stack exchange,提问作者TCP-88
相关产品推荐
相关产品推荐

