If you are locked out of the Carbon Black Cloud Workload Appliance that has admin privileges, you can reset the password.
Procedure
- Log in to the vCenter Server at https://<vCenter IP/Domain address> using admin credentials.
- Under Hosts & Clusters, select the Carbon Black Cloud Workload Appliance.
- In vCenter Server, click the Summary tab and click Launch Web Console.
- In the Web Console window, use the root credential to log in.
- Verify if the admin account is locked using the
pam_tally2 -u admin
command. - If the admin account is locked, issue the following command to unlock it:
pam_tally2 -r -u admin
- To change the admin user password:
- SSH to the Carbon Black Cloud Workload Appliance using admin credentials.
For example, SSH admin@<Appliance_IP_Address>.
- Issue the
passwd admin
command. - Enter the current password and then enter the new password.
Note: Do not use the last five passwords. The password must have at least eight characters. Enter a password that meets basic complexity: at least one number, one lower case letter, one upper case letter, and one special character.
- Re-enter the admin password.
The Carbon Black Cloud Workload Appliance admin user password is changed.
- SSH to the Carbon Black Cloud Workload Appliance using admin credentials.
- The appliance password automatically expires after 90 days. To reset the expired password:
- SSH to the Carbon Black Cloud Workload Appliance using admin credentials.
- Enter an admin password.
Note: Do not use the last five passwords. The password must have at least eight characters. Enter a password that meets basic complexity: at least one number, one lower case letter, one upper case letter, and one special character.
- Re-enter the admin password.
- SSH to the Carbon Black Cloud Workload Appliance to verify that the password change is successful.
- Log in to the Carbon Black Cloud Workload Appliance using the admin user name and the updated password.
- To reset the root password.
Note: For security reasons, SSH access for the root user is disabled on the Carbon Black Cloud Workload Appliance by default.
- SSH to the Carbon Black Cloud Workload Appliance using the admin credentials.
- Reset the password using the following commands:
sudo su
passwd root
- Enter the current password and then the new password.