Changing the admin password
Learn how to change the admin password.
Procedure
- Connect to the NPS host with
nzuser. - Change the password of the admin user:
nzsql –c "alter user admin with password '<new_password>';" - Update the
NZ_PASSWORDvariable.You can:-
- Change the password in the
NZ_PASSWORDvariable that is defined in /export/home/nz/.bashrc. - Log out and log in again to the NPS host or open a new shell for the changes to take effect.
OR
- Change the password in the
-
- Remove the
NZ_PASSWORDvariable from the /export/home/nz/.bashrc file completely. - Use the nzpassword command to securely store the new
password:
nzpassword add -u admin -pw <new_password>
- Remove the
-