passwd: Authentication token manipulation error

简介: Linux/Unix 修改密码(或单用户模式重置密码)的时候提示的错误: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
4124 0
|
2月前
|
JavaScript
Component name “header“ should always be multi-word
Component name “header“ should always be multi-word
|
Linux
ERROR: 2 matches found based on name: network product-server_default is ambiguous
ERROR: 2 matches found based on name: network product-server_default is ambiguous
139 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.
372 0
git 报错:Support for password authentication was removed. Please use a personal access token instead.
|
Unix Linux 数据安全/隐私保护
passwd: Authentication token manipulation error
passwd: Authentication token manipulation error
540 0
passwd: Authentication token manipulation error
|
Linux Shell Windows
Linix登录报"/etc/profile: line 11: syntax error near unexpected token `$'{\r''"
同事反馈他在一测试服务器(CentOS Linux release 7.2.1511)上修改了/etc/profile文件后,使用source命令不能生效,让我帮忙看看,结果使用SecureCRT一登录就发现下面错误信息: Last login: Fri Nov 4 00:42:45 2016 from 10.
2013 0
|
安全 前端开发 Java
Using default security password
不展示Using default security password的解决办法: import org.springframework.context.annotation.Bean; import org.
2349 0