How to reset the root password in vRealize Application Remote Collector
book
Article ID: 343836
calendar_today
Updated On:
Products
VMware Aria Suite
Issue/Introduction
This article provides steps to reset the virtual appliance root password in vRealize Application Remote Collector.
In vRealize Application Remote Collector, when you log in to the console of the virtual application for the first time, you are forced to set a root password.
To reset root password in vRealize Application Remote Collector follow the steps below.
In the vSphere Client, open the console of the vRealize Application Remote Collector.
With the console open, restart or power on the virtual machine.
When the GRUB loader menu appears, immediately use the up and down arrow keys to navigate to the end of the line that starts with Photon OS or linux for new deployments.
Notes:
Press the up and down arrow keys even if the option appears to already be selected. Otherwise, the machine continues to boot, and you have to start over.
Type the letter e to go to the GNU GRUB edit menu.
The cursor appears at the end of a line of boot options near the bottom of the display.
If you cannot reach the boot menu before it disappears, enable Force BIOS setup in tne the Virtual Machine's Settings > VM Options > Boot Options and reboot.
Add a space, then type rw init=/bin/bash which adds another option to the line.
Press F10.
Note: The virtual appliance starts in single-user mode.
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.
To unlock the root account, open /etc/pam.d/system-auth in a text editor.
Comment out the following line by adding a # in front of it:
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.
Type passwd -S root to determine if the root account is locked.
Note: If the account is not locked, you will see PS next to the username. If the account is locked, you will see LK next to the username.