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:
And also removed the touch file so that it keeps disabled after reboot:
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
command, but I see
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.
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
Code:
rm enabled
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
error, and if I enabled cPHulk I will be locked out again!cphulkd is not enabled
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.