SOLVED WHM root login invalid, SSH root login works

linux77

Member
Sep 6, 2010
6
1
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:
[[email protected] 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.
 
  • Like
Reactions: CanadaGuy

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello,

Thanks for sharing!