How can I reset the admin password of the Portal?
Question:
In case of forgotten/lost the admin password of the Portal website.
How can I reset the admin password of the Portal?
Answer:
Depending on whether you have access to the Portal Appliance's Web Console or not, you will need to use one method or another.
In both cases, the password will be reset to "admin".
NOTE: Portal service will be restarted after the password reset.
Steps:
From the Web Console
You can easily reset the Portal's admin password by click on the Reset Portal password Web Console > Portal Tab:
From CLI/SSH
If you cannot access the Portal WebConsole, you can also reset the admin password by using a script directly from the Appliance CLI/SSH session.
To reset the admin password in the Portal via CLI, use the following script:
/var/nexthink/portal/database/reset-admin-pw.sh
If this script is not present in your Portal Appliance, please download it from this article.
Here are the instructions on how to use it:
Browse to the folder where the script is located (or upload the file in this directory)
CODEcd /var/nexthink/portal/database/
Run the script using the following command:
CODE./reset-admin-pw.sh
Restart the Portal for the changes to be taken in account
CODEsudo systemctl restart nxportal