passwd: Authentication token manipulation error----linux

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

 

你可能感兴趣的:(linux,centos,unix,Authentication,token,passwords)