Security questions location?

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
948
29
178
Hello, Until recently, the root security questions file was located at

/var/cpanel/userhomes/cpanel/.cpanel/securitypolicy/questions/root.json

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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
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:

Code:
mkdir -p /var/cpanel/userhomes/cpanel/.cpanel/securitypolicy/questions
Thank you.