Changing the admin password

Learn how to change the admin password.

Procedure

  1. Connect to the NPS host with nz user.
  2. Change the password of the admin user:
    nzsql –c "alter user admin with password '<new_password>';"
  3. Update the NZ_PASSWORD variable.
    You can:
      1. Change the password in the NZ_PASSWORD variable that is defined in /export/home/nz/.bashrc.
      2. Log out and log in again to the NPS host or open a new shell for the changes to take effect.

      OR

      1. Remove the NZ_PASSWORD variable from the /export/home/nz/.bashrc file completely.
      2. Use the nzpassword command to securely store the new password:
        nzpassword add -u admin -pw <new_password>