Passwd: Authentication token manipulation error solved when RHEL6 changes the password

Source: Internet
Author: User

RHEL6 password modification error passwd: Authentication token manipulation error solve password modification error passwd: Authentication token manipulation error cause: it is related to the previous security reinforcement, you can manually modify the attributes of files such as/etc/passwd to modify the password. Note: chattr changes the attributes of files. 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. The solution to the problem is as follows: Modify the file attribute to be modified and then change it back, for details, see [root @ linux1/] # passwd oracleChanging 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 oracleChanging 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/] #

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.