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.

HELP: All Passwords failing

Discussion in 'General Discussion' started by Snowman30, Mar 16, 2006.

  1. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    have a weird issue on a server that just had a workover by Chirpy.

    ive tried to contact him but have had no answer and am getting worried

    All passwords on the server for all clients accounts, reselelrs accounts, emails, WHM and ssh now no longer work

    we reset the root pass to regain access and have found that if we go into each accoun and reset the cpanel pass clients gain access again

    given we dont have everyones passes this is going to be a bad way of fixing it

    ive tried the usual fixeverythign forced sysup and upcp etc and still no joy

    anyone know what would have cuased this and how to fix it?
     
  2. aby

    aby Well-Known Member

    Joined:
    May 31, 2005
    Messages:
    638
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    India
    If it has to be something to do with what Chirpy has done, don't worry, he will fix it himself and you can trust him.
    Anyway if you are unable to get him online right now, please have a check at the /etc and check for some backup of the passwd file there. If you do have a backup there, keep a copy of the existing file and try using the old backup. If you can't find any backu, try moving the passwd- file to passwd and see if that works. Please do remember to keep a copy of the existing file in that case..

    But i repeat... better get advise from Chirpy regarding the same.. Heis not the one who does something silly and he knows well what he is doing.. So no need to worry..
     
  3. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    Oh yes i know i can count on and trust Chirpy and i doubt he was the cause of this issue, its just i know he's busy

    I'll give your suggestion a try

    Thanks
     
  4. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    backup passwd and passwd files are identical so thats not the solution or issue :(
     
  5. xidica

    xidica Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Texas
    Have you tried using pwconv yet?
     
  6. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    yeah didnt help.

    Will have to wait on Chirpy i guess :(
     
  7. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Looks like the shadow file got wiped, most likely cause seems to have been an action within WHM which failed to lock the shadow file correctly. Not nice.
     
  8. ilir038

    ilir038 Member

    Joined:
    Feb 26, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Hi Chirpy,

    Is there any way of restoring /etc/shadow of individual sites? I've had a 100% full disk and after I mounted the 2nd disk and freed a couple gigs, I find that some sites have empty /etc/shadow and its users cannot login to /webmail.

    Thanks a lot for the great help you've given on these forums.

    I.
     
  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
    Ideally you'd have a backup of the shadow file. If not, check whether there's a file /etc/shadow- which is usually a backup of the most recently changed shadow file.

    If all else fails you can rebuild with:

    /scripts/rebuildetcpasswd

    However, that could cause more damage than good, so be sure to take copies of all the following:

    /etc/passwd
    /etc/shadow
    /etc/group
    /etc/gshadow

    I don't think the script checks for duplicates, so you'll have to manually check the above files after running it for dups.

    After running that, you'll have to change each and every cPanel account password.
     
  10. ilir038

    ilir038 Member

    Joined:
    Feb 26, 2005
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    My problem is the individual "shadow" and "passwd" files, not the server-wide ones. This is where the "shadow" I'm talking about is located:

    /home/siteusername/etc/siteaddress.com/shadow

    These files are corrupted and empty. How would I fix them, short of changing every e-mail's password?

    Thanks,

    I.
     
Loading...

Share This Page