Change the Administrator Password
Change the administrator password in Cortex XSOAR 6.13.
If the administrator cannot log in and does not know the password, you need to add a new administrator. You can then change the password for the current administrator.
To add a new administrator, create a one-time configuration (OTC) file that defines the user configuration. Then restart the Cortex XSOAR server. The OTC file is deleted automatically.
Create a new administrator
As the root user, create a
/var/lib/demisto/otc.conf.jsonfile with content similar to the following by using thetouch(create) andvim(edit) commands.{ "users": [ { "username": "newadmin", "password": "veryStrongPassword1!", "email": "admin@example.com", "phone": "+650-123456", "name": "New Admin Dude", "defaultAdmin": true, "roles": { "demisto": [ "Administrator" ] } } ] }If you do not want the new administrator to be the default administrator, remove
defaultAdminor change it tofalse.Save the file.
Ensure the file has
demisto:demistoownership by typing the following command:chown demisto:demisto /var/lib/demisto/otc.conf.json
Update the demisto.conf file (Optional)
If the Cortex XSOAR server is deployed under a custom path, update the demisto.conf file.
Create a backup copy of the
demisto.conffile.Edit the
demisto.conffile by adding the following keys and values:"Server": { "HttpsPort": "443", "ProxyMode": true, "OneTimeConfPath": "/DATA/var/lib/demisto/otc.conf.json" },
Remove the new administrator
(Optional) Remove the new administrator you created in step 1.
Log in to Cortex XSOAR using the current administrator credentials, including the new password.
Go to Settings → USERS AND ROLES → Users, select the new administrator checkbox, and click Remove.
If the new administrator is also a default administrator, you can remove the user by selecting the user, clicking Roles, and unchecking the Set as Default Admin checkbox.
Last updated
Was this helpful?
