解决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,如需转载请自行联系原作者





相关文章
|
5月前
|
关系型数据库 MySQL 数据安全/隐私保护
问题:ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
问题:ERROR 1819 (HY000) Your password does not satisfy the current policy requirements
37 0
Please enter your authorization code to login. More information in http://service.mail.qq.com/
Please enter your authorization code to login. More information in http://service.mail.qq.com/
170 0
错误代码: 1364 Field ‘password‘ doesn‘t have a default value
错误代码: 1364 Field ‘password‘ doesn‘t have a default value
|
开发工具 数据安全/隐私保护 git
git 报错:Support for password authentication was removed. Please use a personal access token instead.
git 报错:Support for password authentication was removed. Please use a personal access token instead.
386 0
git 报错:Support for password authentication was removed. Please use a personal access token instead.
|
数据安全/隐私保护
remote: Support for password authentication was removed on August 13, 2021
remote: Support for password authentication was removed on August 13, 2021
207 0
|
Unix Linux 数据安全/隐私保护
passwd: Authentication token manipulation error
passwd: Authentication token manipulation error
560 0
passwd: Authentication token manipulation error
|
关系型数据库 MySQL 数据安全/隐私保护