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

目录
相关文章
错误代码: 1364 Field ‘password‘ doesn‘t have a default value
错误代码: 1364 Field ‘password‘ doesn‘t have a default value
Gitlab报错:No authentication methods configured on login page
Gitlab报错:No authentication methods configured on login page
187 0
error: R_LARCH_SOP_PUSH_PCREL against `x264_log_default‘:PLT shouldn‘t be with r_addend.
error: R_LARCH_SOP_PUSH_PCREL against `x264_log_default‘:PLT shouldn‘t be with r_addend.
227 0
​Error -4075: File not found. An error occurred merging module <MODULENAME> for feature <FEATURENAME>.
​Error -4075: File not found. An error occurred merging module <MODULENAME> for feature <FEATURENAME>.
131 0
​Error -4075: File not found. An error occurred merging module <MODULENAME> for feature <FEATURENAME>.
未解决:error: R_LARCH_SOP_PUSH_PCREL against `x264_log_default‘:PLT shouldn‘t be with r_addend.
未解决:error: R_LARCH_SOP_PUSH_PCREL against `x264_log_default‘:PLT shouldn‘t be with r_addend.
509 0
|
Unix Linux 数据安全/隐私保护
passwd: Authentication token manipulation error
Linux/Unix 修改密码(或单用户模式重置密码)的时候提示的错误:passwd: Authentication token manipulation error
669 0
passwd: Authentication token manipulation error
Basic Mathematics You Should Mastered
Basic Mathematics You Should Mastered 2017-08-17  21:22:40    1. Statistical distance  In statistics, probability theory, and information theory, ...
Secure Multi-party Computation
https://en.wikipedia.org/wiki/Secure_multi-party_computation ...
1085 0