passwd: Authentication token manipulation error这种错误可能有多种原因,就我了解的可能有/etc/passwd等文件+i权限
今天在给学员上课的时候发现提示passwd: Authentication token manipulation error错误,我来简单描述今天的问题
[root@host4 Scripts]# cat pass.txt
123456
[root@host4 Scripts]# useradd user01
[root@host4 Scripts]# passwd --stdin user01 < pass.txt
Changing password for user user01.
passwd: Authentication token manipulation error
但是我这样却是可以的
[root@host4 Scripts]# echo "123456" | passwd --stdin user01
Changing password for user user01.
passwd: all authentication tokens updated successfully.
说明/etc/shadow应该权限没问题
[root@host4 Scripts]# tail /var/log/messages
[root@host4 Scripts]# tail /var/log/audit/audit.log
type=USER_CHAUTHTOK msg=audit(1333893689.927:16840): user pid=1753 uid=0 auid=0 ses=2 subj=unconfined_u:unconfined_r:passwd_t:s0-s0:c0.c1023 msg='op=change password id=512 exe="/usr/bin/passwd" hostname=? addr=? terminal=pts/0 res=failed'
[root@host4 Scripts]# setenforce 0
[root@host4 Scripts]# passwd --stdin user01 < pass.txt
Changing password for user user01.
passwd: all authentication tokens updated successfully.
原来是selinux在捣鬼~!
CentOS6.2解决passwd: Authentication token manipulation error报错
原创crazylinux 博主文章分类:Linux运维_故障排除 ©著作权
文章标签 职场 error password 休闲 Authentication token 文章分类 Word Office办公
©著作权归作者所有:来自51CTO博客作者crazylinux的原创作品,请联系作者获取转载授权,否则将追究法律责任
CentOS6.2解决passwd: Authentication token manipulation error报错
https://blog.51cto.com/crazylinux/829280
CentOS6.2解决passwd: Authentication token manipulation error报错
https://blog.51cto.com/crazylinux/829280
举报文章
请选择举报类型
内容侵权
涉嫌营销
内容抄袭
违法信息
其他
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论