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.

WHM root login lost - ssh still OK

Discussion in 'General Discussion' started by dennism, Jun 21, 2004.

  1. dennism

    dennism Registered

    Joined:
    Jan 12, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    This is on a FreeBSD box.

    After running /scripts/rebuildetcpasswd I can no longer access WHM as root. SSH access was not affected. When I run /scripts/chcpass I get:
    rawchpass: fixme: freebsd please report this on support.cpanel.net at /scripts/chcpass line 4.

    The root password isn't different, but apparently now cpanel has it recorded someplace as something else. How can I recover from this?

    Thanks.
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Try changing it with passwd
     
  3. dennism

    dennism Registered

    Joined:
    Jan 12, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Re: Re: WHM root login lost - ssh still OK

    I did. I also (briefly) removed the root password altogether.

    I've had a couple of customer calls on this now. It appears that it may be all WHM logins that are not working.

    Where is Web Host Manager looking for login information, or how is it validating logins? The cPanel logins are working fine.
     
  4. JetPrograms

    JetPrograms Registered

    Joined:
    Mar 12, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Russia. Moscow
    Hello! At me absolutely same problem! FreeBSD 4.9, cPanel CURRENT
    All WHM-logins don't work!

    Before there was a problem: the user could get access on FTP, using any password! I have tried to solve this problem by /scripts/rebuildetcpasswd but instead of it have received one more! This problem was solved updating cPanel, but the problem with access to WHM has remained!

    With me has remained accesshash to cPanel, therefore I can be connected to it, using WHM-authorization. I have changed the Root-password means WHM, the real root-password has changed (in ssh), but WHM still does not let.


    Help, please!
     
    #4 JetPrograms, Jun 22, 2004
    Last edited: Jun 22, 2004
  5. dennism

    dennism Registered

    Joined:
    Jan 12, 2004
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1


    I finally solved this. I took a close look at what that script does and it's clear it shouldn't be there on a FreeBSD box. Here's what I did:

    1) remove /etc/shadow
    2) edit /etc/group - deleted all the duplicate lines
    3) remove /etc/passwd and vipw - edit - save to generate a new /etc/passwd
    4) reboot

    When it came back up it was back to normal.
     
Loading...

Share This Page