Passwd: Authenticationtokenmanipulationerror

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.