解决passwd: Authentication token manipulation error

简介:

passwd 命令修改用户密码出现passwd: Authentication token manipulation error


今天,在测试用户文件属性的时候,修改用户密码发现报此错误。


百度上搜结果:

/etc/passwd 文件被锁定

/etc/passwd  /etc/shadow 文件不同步

磁盘空间不足

inode 满了

/etc/pam.d/passwd 相关动态库文件问题


结果,我都试过了,最后发现问题了,我之前不小心把 /etc/pam.d/文件夹内容全部删除过,后来进入恢复模式,把最开始的镜像文件中对应文件夹内容复制进来的。基本系统能正常用,不会报错了。


我的解决方法:

 找一台和现在服务器基本内容差不多的服务器,把那台正常服务器/etc/pam.d/文件夹内容全部拷贝到本机对应文件夹下面。


可以正常用了!


      本文转自无形于有形  51CTO博客,原文链接:http://blog.51cto.com/jinchuang/1844452,如需转载请自行联系原作者





相关文章
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2
3850 0
|
1月前
|
数据库
Field ‘xxx‘ doesn‘t have a default value
Field ‘xxx‘ doesn‘t have a default value
18 0
错误代码: 1364 Field ‘password‘ doesn‘t have a default value
错误代码: 1364 Field ‘password‘ doesn‘t have a default value
|
关系型数据库 MySQL
nodejs.ER_NOT_SUPPORTED_AUTH_MODEError: ER_NOT_SUPPORTED_AUTH_MODE:
nodejs.ER_NOT_SUPPORTED_AUTH_MODEError: ER_NOT_SUPPORTED_AUTH_MODE:
|
Unix Linux 数据安全/隐私保护
passwd: Authentication token manipulation error
passwd: Authentication token manipulation error
521 0
passwd: Authentication token manipulation error
Secure Multi-party Computation
https://en.wikipedia.org/wiki/Secure_multi-party_computation ...
1054 0
|
安全 前端开发 Java
Using default security password
不展示Using default security password的解决办法: import org.springframework.context.annotation.Bean; import org.
2340 0
ERROR: missing keyring, cannot use cephx for authentication
[talen@ceph_admin ~]$ ceph health 2015-09-14 15:11:55.503854 7fdc2297f700 -1 monclient(hunting): ERROR: missing keyring, cannot use cephx for authentication 2015-09-14 15:11:55.
2754 0