The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

!!No Passwords Work for cPanel and WHM!!

Discussion in 'General Discussion' started by Steven_K, Nov 27, 2003.

  1. Steven_K

    Steven_K Member

    Joined:
    Jun 14, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
    #1 Steven_K, Nov 27, 2003
    Last edited: Nov 27, 2003
  2. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    are you able to SSH into the box and su to root?
     
  3. Steven_K

    Steven_K Member

    Joined:
    Jun 14, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  4. RogelioH

    RogelioH Active Member

    Joined:
    Jun 2, 2003
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    how did they fix it?
     
  5. Steven_K

    Steven_K Member

    Joined:
    Jun 14, 2003
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  6. s_2_s

    s_2_s Well-Known Member

    Joined:
    Aug 9, 2004
    Messages:
    215
    Likes Received:
    0
    Trophy Points:
    16
    facing the same is it a bug ?
    the shadow file gets empty when i terminate any account :( :eek: :mad: :confused:
     
  7. ozarkhost

    ozarkhost Active Member

    Joined:
    Oct 9, 2003
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    sounds like a security issue to me.
     
  8. Tim@OCZ

    Tim@OCZ Member

    Joined:
    Jan 13, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  9. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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.
     
  10. bijo

    bijo Well-Known Member

    Joined:
    Aug 21, 2004
    Messages:
    475
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    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.
     
  11. Tim@OCZ

    Tim@OCZ Member

    Joined:
    Jan 13, 2003
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
Loading...

Share This Page