passwd: Authentication token manipulation error----linux

来源:互联网 发布:手机淘宝商家登录页面 编辑:程序博客网 时间:2024/05/26 02:51
 
passwd: Authentication token manipulation error----linux
2009-06-04 11:03

原文章:http://blog.csdn.net/wyzxg/archive/2009/04/13/4069277.aspx

---------------------------------------------

更改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-----

就是shadow这个文件权限上先个改成可修改,然后改密码再把文件属性还原就行了

 
 
 
原文链接:http://hi.baidu.com/gimho76/blog/item/0546601ecdf07f02314e1500.html

原创粉丝点击