1 现象
#passwd
Changing password for user root.
New UNIX password:
Retype
new UNIX password:
passwd: Authentication token manipulation error
2 解决方法
chattr -i /etc/passwd
chattr -i /etc/shadow
# passwd
Changing password for user root.
New UNIX password:
Retype
new UNIX password:
passwd: all authentication tokens updated
successfully.
chattr +i /etc/passwd
chattr +i /etc/shadow
3.原因分析:下面两个文件加了+i属性
/etc/passwd
/etc/shadow
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/90618/viewspace-667024/ ,如需转载,请注明出处,否则将追究法律责任。