Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    51
    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:
    255
    Likes Received:
    2
    Trophy Points:
    68
    Location:
    Romania
    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 ...]
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. cPanelJared

    cPanelJared Technical Analyst

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    21
    Trophy Points:
    143
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPanelJared

    cPanelJared Technical Analyst

    Joined:
    Feb 25, 2010
    Messages:
    1,835
    Likes Received:
    21
    Trophy Points:
    143
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. macfee

    macfee Member

    Joined:
    Feb 20, 2012
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    51
    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
     
Loading...
Similar Threads - Everyone forget security
  1. USA_Webmaster
    Replies:
    1
    Views:
    303

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice