This article provides steps to reset the Aria Operations (formerly known as vRealize Operations) root password.
To reset root password in VMware Aria Operations follow the steps below.
VMware Aria Operations 8.0.x - 8.12.x | VMware Aria Operations 8.14.x - above |
8. Type passwd root and follow the prompts to create a new root password Note: If the above command fails, try running sudo passwd root instead. | 8. At the prompt type, after successful boot, run the following command to mount the root partition
mount -o remount,rw /
|
9. To unlock the root account, open /etc/pam.d/system-auth in a text editor. | 9. Type passwd root and follow the prompts to create a new root password. Note: If the above command fails, try running sudo passwd root instead. |
10. Comment out the following line by adding a # in front of it: auth required pam_tally2.so onerr=fail deny=3 unlock_time=900 root_unlock_time=900 file=/var/log/tallylog Example: #auth required pam_tally2.so onerr=fail deny=3 unlock_time=900 root_unlock_time=900 file=/var/log/tallylog | 10. To unlock the root account run the following command to unlock it /usr/sbin/faillock --user root --reset |
11. Save and close the file. | 11. Type umount / and press Enter. |
12. Type sync and press Enter to flush the data to disk. | 12. Type reboot -f and press Enter. Note: If the reboot command fails, restart the Virtual Machine through vSphere. |
13. Type umount / and press Enter. | |
14. Type reboot -f and press Enter. Note: If the reboot command fails, restart the Virtual Machine through vSphere. | |
15. In the vSphere Client, reopen the console of the desired node and login using root. | |
16. Run the following command: pam_tally2 --user root --reset Note: This command may need to be run twice. | |
17. Open /etc/pam.d/system-auth in a text editor. | |
18. Uncomment the line from step 11 by removing the # in front of it. Example: auth required pam_tally2.so onerr=fail deny=3 unlock_time=900 root_unlock_time=900 file=/var/log/tallylog | |
19. Save and close the file. |
To check if the root account is locked, complete the following while in single user mode.
Note: Running the passwd command from the steps above will unlock the root account, so this step not required if passwd has already been run.
For information on resetting the admin password, see How to Reset the Admin Password in Aria Operations.