本帖最后由 ocean 于 2014-8-19 22:39 编辑
centos突然出现无法修改账户密码的怪现象:
[root@Jeffery ~]# passwd jeffery
Changing password for user jeffery.
passwd: unable to start pam: Critical error - immediate abort
重试了几次问题依旧,并且连续输入用户后出现passwd:PAM failure,aborting:critical error - immediate abort错误提示。根据该提示发觉PAM认证出现问题,然后查看/ETC/PAM.D目录已经不存在(难道突然丢失??)
果真目录是空的
[root@Jeffery ~]# ll /etc/pam.d/
total 0
lrwxrwxrwx. 1 root root 19 Jun 7 13:01 fingerprint-auth -> fingerprint-auth-ac
lrwxrwxrwx. 1 root root 16 Jun 7 13:01 password-auth -> password-auth-ac
lrwxrwxrwx. 1 root root 17 Jun 7 13:01 smartcard-auth -> smartcard-auth-ac
lrwxrwxrwx. 1 root root 25 Jun 7 12:58 smtp -> /etc/alternatives/mta-pam
lrwxrwxrwx. 1 root root 14 Jun 7 13:01 system-auth -> system-auth-ac
把其他同样系统下的该目录通过拷贝到该系统/ETC/目录下,修改密码成功
centos突然出现无法修改账户密码的怪现象:
[root@Jeffery ~]# passwd jeffery
Changing password for user jeffery.
passwd: unable to start pam: Critical error - immediate abort
重试了几次问题依旧,并且连续输入用户后出现passwd:PAM failure,aborting:critical error - immediate abort错误提示。根据该提示发觉PAM认证出现问题,然后查看/ETC/PAM.D目录已经不存在(难道突然丢失??)
果真目录是空的
[root@Jeffery ~]# ll /etc/pam.d/
total 0
lrwxrwxrwx. 1 root root 19 Jun 7 13:01 fingerprint-auth -> fingerprint-auth-ac
lrwxrwxrwx. 1 root root 16 Jun 7 13:01 password-auth -> password-auth-ac
lrwxrwxrwx. 1 root root 17 Jun 7 13:01 smartcard-auth -> smartcard-auth-ac
lrwxrwxrwx. 1 root root 25 Jun 7 12:58 smtp -> /etc/alternatives/mta-pam
lrwxrwxrwx. 1 root root 14 Jun 7 13:01 system-auth -> system-auth-ac
把其他同样系统下的该目录通过拷贝到该系统/ETC/目录下,修改密码成功
编辑回复