How to reset MFA or the root password using Linux utility in 4.2 and above
Background:
As of CPM 4.2 we have added a Linux utility which lets you disable MFA or reset the password for the root user.
Note: If you do not have SSH access to the N2WS server, then the only other way to disable MFA or reset the password is by redeploying the server from the AWS Marketplace.
Steps:
1. Connect to your N2WS instance via SSH, as user cpmuser and your ssh key
2. Change to root user:
sudo su
3. Run this command:
n2ws-reset-login
4. This will print all the options, now you can call the command again with the needed flags
Examples:
1. disable MFA for root user (in the below example my root user is called "Admin")
2. disable MFA and reset password for root user (in the below example my root user is called "Admin")