Differences

This shows you the differences between two versions of the page.

Link to this comparison view

cpanel:disabling-whm-questions-from-cli [2017-11-04 00:28:19] (current)
steve.minter created
Line 1: Line 1:
 +===== How to Disable WHM Security Questions from the CLI on a cPanel server===== 
 +
 +This article shows how to use 'sed' to do an inline replacement of the SourceIPCheck variable in the cpanel configuration file. Changing this variable from 1 to 0 and restarting the cpsrvd the cpanel service daemon will disable the WHM security questions, re-enabling it can then be done by changing the 0 back to a 1 and restarting cpsrvd.
 +
 +==== Disable WHM Authenitcation Question from CLI (SSH) ====
 +<code console>
 +sed -i s/SourceIPCheck\=1/SourceIPCheck\=0/ /var/cpanel/cpanel.config
 +/scripts/restartsrv_cpsrvd
 +</code>
 +
 +==== Re-Enable WHM Authenitcation Question from CLI (SSH) ====
 +<code console>
 +sed -i s/SourceIPCheck\=0/SourceIPCheck\=1/ /var/cpanel/cpanel.config
 +/scripts/restartsrv_cpsrvd
 +</code>