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

目录
相关文章
|
9月前
|
关系型数据库 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
63 0
|
10月前
|
安全 关系型数据库 MySQL
ERROR 1819 (HY000): Your password does not satisfy the current policy requirements问题处理
【5月更文挑战第8天】ERROR 1819 (HY000): Your password does not satisfy the current policy requirements问题处理
1393 2
|
10月前
|
安全 关系型数据库 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
101 2
|
JavaScript
fast admin报错:Unexpected token ‘<‘, “ (已解决)
fast admin报错:Unexpected token ‘<‘, “ (已解决)
272 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:
139 0
|
Unix Linux 数据安全/隐私保护
passwd: Authentication token manipulation error
Linux/Unix 修改密码(或单用户模式重置密码)的时候提示的错误:passwd: Authentication token manipulation error
675 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.
2052 0