While this isn’t the only measure you should use, we certainly recommend it. It’s fair to say that with great protection, can come great inconvenience. You’ve enabled cPHulk but you’ve managed to lock yourself out. Fear not, there’s a couple of options to get yourself back in the game:
If you are completely lockout of the server then open web browser from your PC and access WHM at https
https://hostname.com:2087/scripts2/doautofixer?autofix=disable_cphulkd
Stop cPHulk from the command line via terminal or ssh
/usr/local/cpanel/etc/init/stopcphulkd
Disable cPHulk from the command line via terminal or ssh
/usr/local/cpanel/bin/cphulk_pam_ctl --disable
Unsurprisingly you can also use the following to re-enable it:
/usr/local/cpanel/bin/cphulk_pam_ctl --enable
Above commands will just stop or disable cphulkd temporarily if you restart the cPanel service, it would again start the cphulkd service. In order to stop it permanently.
You can try
rm -f /var/cpanel/hulkd/enabled
Enjoy!!