Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

SOLVED WHM root login invalid, SSH root login works

Discussion in 'General Discussion' started by linux77, Feb 11, 2018.

  1. linux77

    linux77 Member

    Joined:
    Sep 6, 2010
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    51
    Good Day,

    Just in case someone runs across this old issue and still can't log into WHM. Try the following.

    Prerequisite:

    - You must have ssh access with sudo rights
    - Check login_log and see if whostmgrd (cpHulk) has locked you out. The output will look something like the below:

    Code:
    [root@cpanel log]# tail -f /usr/local/cpanel/logs/login_log
    [2018-02-11 16:16:13 +0000] info [whostmgrd] 15.66.22.11 - root "POST /login/?login_only=1 HTTP/1.1" DEFERRED LOGIN whostmgrd: brute force attempt (user root) has locked out IP 15.66.22.11 (3)
    [2018-02-11 16:17:15 +0000] info [cpaneld] 15.66.22.11 - causer "POST /login/?login_only=1 HTTP/1.1" DEFERRED LOGIN cpaneld: brute force attempt (user causer) has locked out IP 15.66.22.11(3)
    If the above applies to you, try the following:

    1. SSH to your server and sudo to root

    2. Run the command:

    Code:
    /scripts/cphulkdwhitelist <your_ip_address>
    The command above will whitelist your IP address.

    Link to cPanel reference document: cPHulk Management on the Command Line - cPanel Knowledge Base - cPanel Documentation

    3. Enable Password Reset
    Code:
     export ALLOW_PASSWORD_CHANGE=1
    3. Change your password
    Code:
     /scripts/chpass root "New_Password"
    4. Profit

    Hope this helps someone.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    42,802
    Likes Received:
    1,714
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page