!!No Passwords Work for cPanel and WHM!!

Steven_K

Member
Jun 14, 2003
23
0
151
UK
I REALLY need some help here.

I got online this morning to find that none of the passwords for WHM (including root) and cPanel are working.

This means that none of the people that I host can log into their accounts nor can I myself get into the root account.

I really really need some help on this because I have no idea what has happened. It worked fine last night and as soon as I got online, none of the passwords worked.

Does anybody know a script or something that I can run to fix this and can somebody please tell me why this has happened.

Thanks in advance. Plz help.
 
Last edited:

Steven_K

Member
Jun 14, 2003
23
0
151
UK
No I wasnt able to get into anything including SSH.

But problem fixed! Just been speaking to my datacenter for the last 15 mins or so and apparently the shadow file for my server was totally empty and said it can happen sometimes when accounts get removed.

Anyway, it was rebuilt and all seems fine now.

Thx.
 

Steven_K

Member
Jun 14, 2003
23
0
151
UK
They just told me they had rebuilt it. I then had to sync ftp passwords and everything was fixed.

I'm not totally sure how they managed to get all the passwords back though sorry
 

s_2_s

Well-Known Member
Aug 9, 2004
215
0
166
facing the same is it a bug ?
the shadow file gets empty when i terminate any account :( :eek: :mad: :confused:
 
Jan 13, 2003
22
0
151
Same thign happend to me...

Although my shadow file is not empty it just lacks the passwd part of the usernames which causes everyone to not be able to login. Any idea on how to rebuild?
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,437
31
473
Go on, have a guess
Unless you have a backup passwd (usually called /etc/passwd-) or have a full cPanel backup (where you can restore passwd from /backup/cpbackup/daily/files/_etc_passwd.gz) then you're going to have to rebuild it by hand.
 

bijo

Well-Known Member
Aug 21, 2004
474
0
166
India
Same thign happend to me...

Although my shadow file is not empty it just lacks the passwd part of the usernames which causes everyone to not be able to login. Any idea on how to rebuild?
Hello,

if you have access to the server, first disable the shadow password option. you can disable it through the following command authconfig. and reset the password of users and enable the shadow password option. It will recreate the /etc/shadow file.
May be it will help you to solve this issue.
 
Jan 13, 2003
22
0
151
The shadow file does exists and has all the proper entires except it does not contain any passwords...hence no auth can take place...

any ideas on a solution to recreate the shadowed passwords?