The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hi,Everyone, I forget the security questions

Discussion in 'Security' started by macfee, Dec 21, 2012.

  1. macfee

    macfee Member

    Joined:
    Feb 20, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I set the secrity questions before serveral days and I opened the IP authentication. Now I must answer the question to login in the server.But I forget the answer, What should i do?

    Thanks.
     
  2. macfee

    macfee Member

    Joined:
    Feb 20, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi,Everyone, I forget the security questions

    I set the secrity questions before serveral days and I opened the IP authentication. Now I must answer the question to login in the server.But I forget the answer, What should i do?

    Thanks.
     
  3. PlotHost

    PlotHost Well-Known Member

    Joined:
    Apr 29, 2011
    Messages:
    253
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    US
    cPanel Access Level:
    Root Administrator
    Twitter:
    See here Configure Security Policies

    [I think that deleting /var/cpanel/userhomes/cpanel/.cpanel/securitypolicy/questions/root.json will also do the job - maybe someone from cPanel can confirm ...]
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Log into the server as root via SSH, and open /var/cpanel/cpanel.config in your favorite Linux text editor. Change the following from this:

    Code:
    SecurityPolicy::SourceIPCheck=1
    to this:

    Code:
    SecurityPolicy::SourceIPCheck=0
    Save the change to the file, and exit the text editor. Now run this command:

    Code:
     # /usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
    You should now be able to log into the WebHost Manager.

    Make sure to pick security questions and answers that you will remember easily, before you enable this feature again.
     
  5. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    There is no need to alter or delete that file to restore access if the security questions are forgotten. Instead, just change the boolean value for the setting in /var/cpanel/cpanel.config as I described.
     
  6. macfee

    macfee Member

    Joined:
    Feb 20, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Thanks,PlotHost and Jared,I have done as Jared's method.Now I was access to login in my server.Thanks
     

Share This Page