passwd Authentication token manipulation error----linux

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

               

author: skate
time:   2009/04/11


更改centos4.7 linux的root密码 报:passwd: Authentication token manipulation error

如下所示:

[root@ticket-A ~]# passwd root
Changing password for user root.
New UNIX password:
Retype new UNIX password:
Sorry, passwords do not match
New UNIX password:
Retype new UNIX password:
passwd: Authentication token manipulation error


google了半天,有的说是根目录空间满,或者是密码文件的权限的问题

想到我以前对系统做安全配置,把/etc/passwd, /etc/shadow 改为不可修改

修改如下:

[root@ticket-A ~]# chattr -i /etc/passwd
[root@ticket-A ~]# chattr -i/etc/shadow

再修改root的密码就可以。

修改完之后,再执行

[root@ticket-A ~]# chattr +i /etc/passwd
[root@ticket-A ~]# chattr +i/etc/shadow

----end-----

           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

这里写图片描述

猜你喜欢

转载自blog.csdn.net/ffuygggh/article/details/84000792