Problem: Error Passwd:authentication token manipulation error when using ROOT to change password
Solve:
1, check whether the permissions issue,/etc/passwd/etc/shadow file is locked
LSATTR/ETC/PASSWD Lsattr/etc/shadow
File Unlock:
Chattr-i/etc/passwd chattr-i/etc/shadow
and then test it.
2. See if the root space is full
Df-h
If the root directory is full, clear the disk files as needed
3, check permissions issues, whether you do not have permission to execute
LL/ETC/PASSWD Ll/etc/shadow
Give Execute permission
chmod 755/etc/passwd/etc/shadow
If you execute the chmod command error chmod:changing permissions of '/etc/passwd ': Read-only file system
The reason is: The file system is in read-only mode
Solution: Mount-rw-o remount/
Note: Mount is a mount command
-RW is to say that the specified mount file is read/write
-O remount/means to re-mount the root.
Then re-execute the chmod command
Linux root failed to change password