If you are locked out of the Carbon Black Cloud Workload appliance that has admin privileges, you can reset the password.
Procedure
- From your browser, log in to the vCenter Server at https://<vCenter IP/Domain address> using the admin credentials. The Carbon Black Cloud Workload appliance is located here.
- Under Hosts & Clusters, select the Carbon Black Cloud Workload appliance.
- In vCenter Server, click the Summary tab and click Launch Web Console.
Allow pop-up windows if needed.
- 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, then use the following command to unlock:
pam_tally2 -r -u admin
- To change the admin user password.
- SSH to the Carbon Black Cloud Workload appliance using the admin credentials.
For example, SSH admin@<Appliance_IP_Address>.
- Use the
passwd admin
command. - Enter the current password and then the password that you want, and note it for the future reference.
Note: Do not use the last five passwords. The password must have at least eight characters. Enter a password that meets with the basic complexity, as at least one number, one lower case letter, one upper case letter, and one special character.
- Reenter the admin password.
The Carbon Black Cloud Workload appliance admin user password is changed.
- SSH to the Carbon Black Cloud Workload appliance using the admin credentials.
- To reset the expired password. The appliance password automatically expires after 90 days.
- SSH to the Carbon Black Cloud Workload appliance using the admin credentials.
- When prompted for a password, enter the admin password that you want, and note it for the future reference.
Note: Do not use the last five passwords. The password must have at least eight characters. Enter a password that meets with the basic complexity, as at least one number, one lower case letter, one upper case letter, and one special character.
- Reenter the admin password.
The password is changed successfully.
- SSH to the Carbon Black Cloud Workload appliance again to verify that the password change is successful.
- Now log in to the Carbon Black Cloud Workload appliance UI with the admin user name and the changed password.
- To reset the root password.
Note: By default, SSH access for the root user is disabled on the Carbon Black Cloud Workload appliance for security reasons.
- 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 password that you want, and note it for the future reference.
Carbon Black Cloud Workload appliance root user password is changed.