版权声明:本文是博客的原创文章,支持原创。 转载请附上原文来源的链接和本声明。
1、设置新密码,第二次输入相同密码验证错误
错误如下。
[root@node1~]# passwd test
更改密码for user test。
新密码:
bad password : thepasswordisshorterthan8characters
Retype new password:
passwd : authenticationtokenmanipulationerror
检查文件是否已锁定。 (我的报告错误是文件被I锁定,所以文件被锁定) ) )。
命令lsattr文件名
#通过下图的故障诊断,发现文件上有I锁
解决:
chattr -i文件名
解除锁定进行验证,确认I锁定已解除后再次更改密码即可
如果磁盘已满或inode已满,则会发生此类错误,并显示为df -h和df -i
2、设置新密码后才输入,就会报告错误
[root@node1 ~]# passwd test
更改密码for user test。
passwd : authenticationtokenmanipulationerror
youhavenewmailin/var/spool/mail/root
故障诊断:/etc/pam.d/是否正常,下图为正常内容,文件内容不正常时会发生此错误。 例如有评论等)
可以与以下正常内容进行比较进行故障排除。 #仅供参考
解决:
把错误的地方修正到正常状态就可以了。
故障诊断2 :
/etc/pam.d/system-auth文件的内容是否正常,可与以下正常内容进行比较。 #仅供参考
[ root @ kelong1Shi ] # cat/etc/PAM.d/system-auth
#%PAM-1.0
# this file is自动生成。
# userchangeswillbedestroyedthenexttimeauthconfigisrun。
auth请求PAM _ env.so
authrequiredpam _ fail delay.so delay=2000000
auth sufficient pam_fprintd.so
authsufficientpam _ UNIX.sonulloktry _ first _ pass
authrequisitepam _ succeed _ if.so uid=1000 quiet _ success
auth请求PAM _ deny.so
account请求PAM _ UNIX.so
accountsufficientpam _ local user.so
accountsufficientpam _ succeed _ if.so uid 1000 quiet
account请求PAM _ permit.so
passwordrequisitepam _ pw quality.sotry _ first _ pass local _ users _ only retry=3authtok _ type=
passwordsufficientpam _ UNIX.so sha 512 shadownulloktry _ first _ passuse _ authtok
password请求PAM _ deny.so
sessionoptionalpam _ key init.so revoke
session请求PAM _ limits.so
-session optional pam_systemd.so
SSS ion [ success=1default=ignore ] PAM _ succeed _ if.soserviceincrondquietuse _ uid
session请求PAM _ UNIX.so