passwd Authentication token manipulation error----linux
阿新 • • 發佈:2018-11-14
分享一下我老師大神的人工智慧教程!零基礎,通俗易懂!http://blog.csdn.net/jiangjunshow
也歡迎大家轉載本篇文章。分享知識,造福人民,實現我們中華民族偉大復興!
author: skate
time: 2009/04/11
更改centos4.7 linux的root密碼 報:passwd: Authentication token manipulation error
如下所示:
[[email protected] ~]# 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 改為不可修改
修改如下:
[[email protected] ~]# chattr -i /etc/passwd
[[email protected] ~]# chattr -i/etc/shadow
再修改root的密碼就可以。
修改完之後,再執行
[[email protected] ~]# chattr +i /etc/passwd
[[email protected] ~]# chattr +i/etc/shadow
----end-----