RHEL6 password modification error passwd: Authenticationtokenmanipulationerror cause: it has something to do with the previous security reinforcement. By manually modifying the attributes of two files, such as/etc/passwd, you can successfully modify the password remarks: chattr changes the file attributes. I: Immutable. The system does not allow any modifications to this file. If the directory has this attribute, any process can only modify the files under the Directory and cannot create or delete files.
Passwd: Authentication token manipulation error
Cause: it is related to the previous security reinforcement. You can modify the password by manually modifying the attributes of the/etc/passwd and other files.
Note: chattr changes the file attributes.
I: Immutable. The system does not allow any modifications to this file. If the directory has this attribute, any process can only modify the files under the Directory and cannot create or delete files.
The solution is as follows: first modify the file attribute to be modified, and then change it back, as shown below:
[Root @ linux1/] # passwd Oracle
Changing password for user oracle.
New password:
Retype new password:
Passwd: Authentication token manipulation error
[Root @ linux1/] #
[Root @ linux1/] #
[Root @ linux1/] # ls-l/etc/passwd
-Rw-r -- 1 root 1831 May 30/etc/passwd
[Root @ linux1/] # ls-l/etc/shadow
-Rw-r -- 1 root 1430 May 30/etc/shadow
[Root @ linux1/] # chattr-I/etc/passwd
[Root @ linux1/] # chattr-I/etc/shadow
[Root @ linux1/] #
[Root @ linux1/] #
[Root @ linux1/] # passwd oracle
Changing password for user oracle.
New password:
Retype new password:
Passwd: all authentication tokens updated successfully.
[Root @ linux1/] #
[Root @ linux1/] #
[Root @ linux1/] # chattr + I/etc/shadow
[Root @ linux1/] # chattr + I/etc/passwd
[Root @ linux1/] #
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10