Unable to modify Linux password Authentication token manipulation Error Problem resolution

Source: Internet
Author: User

Unable to modify Linux password Authentication token manipulation Error Problem resolution
Note: I encounter the same problem, the use of 7-8 step OK.


Passwd:authentication token manipulation error When a colleague modifies the Linux root password
The cause of this error occurs:
1, the partition has no space to cause.
2,/etc/passwd and/etc/shadow different steps
But this time the above two does not work, through DF to see the root partition and 40% remaining.

1, try to change the password, an error occurred
# passwd
Changing password for user root.
New UNIX Password:
Bad Password:it is the too short
Retype new UNIX Password:
Passwd:authentication Token manipulation Error
2, synchronous/etc/passwd and/etc/shadow error
#pwconv
Pwconv:can ' t lock passwd file
3, see Permissions No exception, there is no process to lock the file
# LL/ETC/PASSWD
-rwxr--r--1 root root 2752 Dec 17:29/etc/passwd
# fuser-u/ETC/PASSWD
# lsof |grep passwd
4, CP lock file Error, insufficient space to indicate
# cp/tmp/.pwd.lock/etc/
Cp:cannot Create regular file '/etc/.pwd.lock ': No space left on device
5, the above error woke me up, check is really inode full, delete useless files
#df-I.
Filesystem inodes iused IFree iuse% mounted on
/dev/sda5 2562240 2562240 0 100%/
/DEV/SDA1 50200 50153 1%/boot
/dev/sda2 51300000 51299988 1%/data/cache1
/DEV/SDB1 51300000 7080311 44219689 14%/data/cache2
/DEV/SDB2 9863168 9863157 1%/data/proclog
None 215907 1 215906 1%/DEV/SHM
/dev/sda3 3842720 305795 3536925 8%/usr
/dev/sda7 3162112 7893 3154219 1%/var
6, again change the password still error, so try to modify/etc/passwd also appeared error
# chmod 777/ETC/PASSWD
chmod:changing permissions of '/etc/passwd ': Operation not permitted
7, the implementation of CHATTR
#chattr-I./etc/passwd
# lsattr-v/ETC/PASSWD
2095582053-------------/etc/passwd
# chattr-i/etc/shadow
8. Synchronizing files
Pwconv
9. Successful Password change
passwd
Changing password for user root.
New UNIX Password:
Bad Password:it is the too short
Retype new UNIX Password:
Passwd:all authentication tokens updated successfully.
#

Unable to modify Linux password Authentication token manipulation Error Problem resolution

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.