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
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
Linux/Unix 修改密码(或单用户模式重置密码)的时候提示的错误:passwd: Authentication token manipulation error
572 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