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