passwd: Authentication token manipulation error

简介: passwd: Authentication token manipulation error

这是Linux/Unix 修改密码(或单用户模式重置密码)的时候提示的错误,修改失败有很多种原因,以下是权限问题的解决办法:

(1)查看 /etc/passwd /etc/shadow 的属性

lsattr /etc/passwd /etc/shadow

发现两个文件的属性不一致所致,如下图:

410ul38hwn.png

(2)去掉/etc/shadow文件的a属性:

chattr -a  /etc/shadow

使文件 /etc/passwd和 /etc/shadow具有相同的属性。如下图:hu0o6krvjy.png

(3)再执行passwd修改用户密码即可成功。如下图:

3851e6ruq8.png

目录
相关文章
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
4134 0
|
3月前
|
关系型数据库 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
26 0
|
JavaScript
fast admin报错:Unexpected token ‘<‘, “ (已解决)
fast admin报错:Unexpected token ‘<‘, “ (已解决)
208 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:
109 0
RFC and session issue - why we should use DESTINATION NONE?
RFC and session issue - why we should use DESTINATION NONE?
133 0
RFC and session issue - why we should use DESTINATION NONE?
|
Unix Linux 数据安全/隐私保护
passwd: Authentication token manipulation error
Linux/Unix 修改密码(或单用户模式重置密码)的时候提示的错误:passwd: Authentication token manipulation error
613 0
passwd: Authentication token manipulation error