Authentication token manipulation error

#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

你可能感兴趣的:(unix)