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!

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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,167
    Likes Received:
    1,934
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Thanks for sharing!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice