Appendix F - Resetting Root Password or MFA in N2WS
Learn how to reset a root password or multi-factor authentication.
Last updated
Learn how to reset a root password or multi-factor authentication.
Last updated
The reset method depends on whether you have SSH access to the N2WS instance and what is your version of N2WS:
If you have SSH access to the N2WS instance and are running version 4.2 and above, see section .
If you do not have SSH access to the instance or are running an older version, see section .
N2WS Login Reset Utility n2ws-reset-login
:
To reset login credentials and/or MFA for specific or all users:
Connect to N2WS instance via SSH with user 'cpmuser
' and your SSH key.
Switch to root: ‘sudo su
’.
To see options for using the utility to resent the password or MFA, type ‘n2s-reset-login
’.
4. Disable the root user MFA without changing the password:
5. Disable the root user MFA and reset the password:
6. Enter password and confirmation entry.
7. Reset MFA if relevant.
If you don’t have SSH access, perhaps because the key is lost, or if you just need to recover your password and disable the MFA, redeploy the instance as follows:
If you know the root/admin username:
Make sure there are no backups or DR in progress.
When configuring the new instance, use the old username of the root/admin (important!) and the new password.
If you don’t know the root/admin username:
Make sure there are no backups or DR in progress.
During the “upgrade” process, type the username you think it is and the new password.
If you typed the wrong root username, N2WS will assume you forgot it and will create a file on the server, '/tmp/username_reminder'
, containing the old username.
To view this file, connect to the N2WS server using SSH as ‘cpmuser
’.
Now you will be able to use the older username with the new password.
Follow the upgrade procedure in the N2WS User Guide at .
After the new CPM is launched, apply any necessary patches to make sure it’s up-to-date with the latest fixes and features:
Follow the upgrade procedure in the N2WS User Guide at .
After the new CPM is launched, apply any necessary patches to make sure it’s up-to-date with the latest fixes and features:
For further information, see