📄
N2WS Backup & Recovery User Guide 4.3.0
  • 1 Introduction to N2WS
  • 2 Installing and Upgrading N2WS
  • 3 Start Using N2WS
  • 4 Defining Backup Policies with N2WS
  • 5 Consistent Backup with N2WS
  • 6 Windows Instances Backup with N2WS
  • 7 Linux/Unix Instances Backup with N2WS
  • 8 Using Elastic File System (EFS) with N2WS
  • 9 Additional N2WS Backup Topics
  • 10 Performing Recovery with N2WS
  • 11 Disaster Recovery with N2WS
  • 12 Cross-Account DR, Backup, and Recovery with N2WS
  • 13 File-Level Recovery with N2WS
  • 14 Tag-based Backup Management with N2WS
  • 15 N2WS Resource Control
  • 16 Security Concerns and Best Practices with N2WS
  • 17 Alerts, Notifications, and Reporting with N2WS
  • 18 N2WS User Management
  • 19 N2WS IdP Integration
  • 20 Configuring N2WS with CloudFormation
  • 21 Managing Snapshots with Lifecycle Policies with N2WS
  • 22 Configuring Workers with N2WS
  • 23 Capturing and Cloning in Network Environments with N2WS
  • 24 Orchestrating Recovery Scenarios with N2WS
  • 25 Monitoring Costs and Savings with N2WS
  • 26 Using N2WS with Azure
  • Appendix A Recommended Configuration for Copy to S3 with N2WS
  • Appendix B Agents Configuration Format with N2WS
  • Appendix C Time Zones with N2WS
  • Appendix D Datadog Integration with N2WS
  • Appendix E Splunk Integration Support with N2WS
  • Appendix F - Resetting Root Password or MFA in N2WS
  • Appendix G - Securing Default Certificates on N2WS Server
Powered by GitBook
On this page
  • F.1 Resetting Root Password if SSH and Version 4.2 or Later
  • F.2 Resetting Root Password if no SSH and Version 4.1 or Earlier

Appendix F - Resetting Root Password or MFA in N2WS

Learn how to reset a root password or multi-factor authentication.

PreviousAppendix E Splunk Integration Support with N2WSNextAppendix G - Securing Default Certificates on N2WS Server

Last updated 11 months ago

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 .

F.1 Resetting Root Password if SSH and Version 4.2 or Later

N2WS Login Reset Utility n2ws-reset-login:

usage: n2ws-reset-login.pyc [-h] [-u USER] [-a] [-p] [-m] [-y]
Reset login credentials and/or MFA for specific/all users. 
optional arguments:
  -h, --help            show this help message and exit
  -u USER, --user USER  apply for specific user (name)
  -a, --all             apply for all users
  -p, --password        password to set
  -m, --mfa             disable MFA
  -y, --yes             auto confirm

To reset login credentials and/or MFA for specific or all users:

  1. Connect to N2WS instance via SSH with user 'cpmuser' and your SSH key.

  2. Switch to root: ‘sudo su’.

  3. 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:

n2ws-reset-login -u <root_user_name> -m -y

5. Disable the root user MFA and reset the password:

n2ws-reset-login -u <root_user_name> -m -y -p

6. Enter password and confirmation entry.

7. Reset MFA if relevant.

F.2 Resetting Root Password if no SSH and Version 4.1 or Earlier

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.

  1. 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.

  1. During the “upgrade” process, type the username you think it is and the new password.

  2. 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.

    1. To view this file, connect to the N2WS server using SSH as ‘cpmuser’.

    2. 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

https://docs.n2ws.com/user-guide/#1-4-upgrading-n-2-ws
https://support.n2ws.com/portal/en/kb/articles/release-notes-for-the-latest-v4-1-x-cpm-release
https://docs.n2ws.com/user-guide/#1-4-upgrading-n-2-ws
https://support.n2ws.com/portal/en/kb/articles/release-notes-for-the-latest-v4-1-x-cpm-release
https://support.n2ws.com/portal/en/kb/articles/how-to-reset-the-password-for-the-root-admin-cpm-user
F.1
F.2