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!

Security questions location?

Discussion in 'Security' started by 4u123, May 4, 2018.

  1. 4u123

    4u123 Well-Known Member

    Jan 2, 2006
    Likes Received:
    Trophy Points:
    Hello, Until recently, the root security questions file was located at


    This made it nice and easy for us to copy the same security questions to new servers so we didn't have to keep creating new ones and running the risk of typos.

    I've been setting up some new servers today and it seems within the last couple of months, this has changed. The structure of /var/cpanel/userhomes/ is different and the above directory no longer exists.

    Can anyone tell me if this process has now completely changed and / or if it is still possible to easily copy these between servers somehow?
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello @4u123,

    I browsed to WHM >> Security Questions and setup the security questions and answers. I then confirmed the questions and answers were populated to /var/cpanel/userhomes/cpanel/.cpanel/securitypolicy/questions/root.json.

    If the directory structure doesn't already exist on a new system, you can create it using a command like this:

    mkdir -p /var/cpanel/userhomes/cpanel/.cpanel/securitypolicy/questions
    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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