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.

cPHulk Blocked "root" Account

Discussion in 'Security' started by MHD_MUS, Jul 7, 2015.

  1. MHD_MUS

    MHD_MUS Member

    Joined:
    Jun 29, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello,

    I was already logged in as root in WHM when, for some reason, I saw the "Invalid login" interrupting screen.
    (maybe my IP address got reset, maybe network connection dropped... etc.)
    Then I tried to login again, but the "Login Invalid" persists, so I knew that root was blocked. Obviously, also SSH root was blocked.


    So, I manually accessed the machine, mounted the partition, chrooted the WHM directory, and disabled cPHulk using:
    Code:
    /usr/local/cpanel/etc/init/stopcphulkd
    And also removed the touch file so that it keeps disabled after reboot:
    Code:
    rm enabled
    Then rebooted the server and now I am able to login as root in WHM as well as SSH.

    However, the problem now is that I cannot unblock root and re-enable cPHulk.
    Knowing that I am not sure that whitelisting my IP address will unblock the root account, I tried
    Code:
    /scripts/cphulkdwhitelist
    command, but I see
    error, and if I enabled cPHulk I will be locked out again!


    Hence, the current situation is that the root account is currently locked, cPHulk is disabled, and I have root WHM and SSH access.
    Thus, I'll be more than grateful if you can guide me how to unlock root account without unlocking other locked accounts (if possible), so that I can re-enable cPHulk and login to WHM as root and whitelist my IP address.

    Otherwise, if this cannot be done, your advice about an alternative way to fix this situation will be more than thankful.

    Kind regards.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,762
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can enable cPHulk via the command line and it won't restart the SSHd service or log you out. Enable cPHulk, and then add your IP address to the whitelist so that blocks to the "root" account won't lock you out.

    Thank you.
     
Loading...

Share This Page