Skip to main content
Skip table of contents

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:

  1. Browse to the folder where the script is located (or upload the file in this directory)

    CODE
    cd /var/nexthink/portal/database/ 
  2. Run the script using the following command: 

    CODE
    ./reset-admin-pw.sh
  3. Restart the Portal for the changes to be taken in account 

    CODE
    sudo systemctl restart nxportal

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.