While changing the cPanel password from cPanel >> Preferences >> Change password, you might face the following error
There was an error manipulating the password file. This generally means you entered your old password incorrectly.
Even if you confirm the old password used is correct, still you might face this problem.
This problem is faced due to inappropriate permissions set for the file /usr/bin/passwd.
To sort this error you can do a simple trick (which worked for me! )
To sort this error login to the server as root and change the permissions for the file to 4511.
[root@server~] # chmod 4511 /usr/bin/passwd
Once done, try to change the password again from the cPanel. It should work!