Can't change any passwords via cPanel

Freeze

Registered
Dec 25, 2010
4
0
51
Hi

For some reason i can't change any password via cPanel, such as MySQL, FTP and my password to cPanel.
I get this error every time:

"There was an error manipulating the password file. This generally means you entered your old password incorrectly."

Even tho i'm 100% sure i'm entering the right current password, and i'm typing the new password right.

How do i fix this?
 

Freeze

Registered
Dec 25, 2010
4
0
51
/etc/passwd is 644.

I can't find /usr/bin/passwd? What do i do if i don't have one?
 
Last edited:

JawadArshad

Well-Known Member
PartnerNOC
Apr 8, 2008
459
7
68
PK
cPanel Access Level
DataCenter Provider
1- Copy it over from /bin as there is an identical copy of this binary in /bin.

If it's not there, you can proceed with the next options.

2- Backup your /etc/passwd and /etc/shadow and other vital files just in case, although they belong to a different RPM.

3- Copy the binary over from a matching server or download and force install 'passwd' rpm.

Check which version is installed.

rpm -qa |grep -i passwd

Here is the sample output.

Code:
[email protected] [~]# rpm -qa |grep -i passwd
pam_passwdqc-1.0.2-1.2.2
pam_passwdqc-1.0.2-1.2.2
passwd-0.73-1
You can download the passwd rpm version for your OS and architecture (32 or 64bit) and force install it.

Code:
rpm -ivh --force passwd-0.73-xxxx.rpm
Not to mention, you need to investigate how this file got deleted and proceed with the above at your own risk.

/etc/passwd is 644.

I can't find /usr/bin/passwd? What do i do if i don't have one?
 
Last edited:

Freeze

Registered
Dec 25, 2010
4
0
51
My host haven't enabled shell and i can't even find a bin folder in file manager.
 
Last edited: