Resetting user passwords in vCenter Operations Manager vApp (2013358)
This article describes how to reset passwords in vCenter Operations Manager 5.x. The procedure for the root user is different from the admin user. Both procedures are documented here.
- Reset the root user password
- Reset the admin user password
Resetting the root user password
If you forget the root user password, reset this password by booting into single user mode.
- In the vSphere Client, power off both the UI and Analytics virtual machines.
- Right-click the powered-off UI virtual machine, click Open Console in the pop-up menu.
- From the virtual machine console window, hit the green |> button to power on the UI virtual machine.
- Note: You have only a few seconds to accomplish this step. If you do not halt the boot countdown, you have to start again.
When the boot screen appears, quickly click inside the window and enter a space. The boot process halts and the countdown from 7 to 0 at the bottom of the screen clears.
- Ensure the first line is selected (SUSE Linux Enterprise ...), and press the letter e. The boot parameters menu appears.
- Navigate to the second line (beginning with “kernel /vmlinuz-....”), and press the letter e again, which drops you into a grub prompt, and the cursor is positioned at the end of the line.
- Enter a space, then type init=/bin/sh, and press Enter.
Note: The space and the parameter are appended to the line onscreen. Once you press Enter, you are returned to the previous boot parameters screen, with the kernel line highlighted.
- This step overwrites the temporary changes made in Step 7, and all boot parameters revert to their previous values. Press the letter b to boot. You see a short boot sequence, then a shell prompt.
- To reset the root user password, run this command:
- Reboot the vApp.
- Repeat Steps 1-9 for the Analytics virtual machine.
Note: Ensure you enter the same new password for both the UI and the Analytics virtual machines.
- Restart the UI and Analytics virtual machines.
Resetting the admin user password
If you forget the admin user password for vCenter Operations Manager, a script is available for you to re-set that password.
For vCenter Operations 5.0, download the attached script and copy to the vApp using a tool such as SCP.
For vCenter Operations 5.0.1 and subsequent versions, the script is available in the vApp.
- If you are on the 5.0 version, download and unzip the file resetadminpwd.zip to obtain the script file resetadminpwd.sh.
- Save resetadminpwd.sh on the UI virtual machine in the /usr/lib/vmware-vcops/user/conf/install folder.
- Change directory to /usr/lib/vmware-vcops/user/conf/install.
- Make the resetadminpwd.sh script executable using this command:
chmod 755 resetadminpwd.sh
- As root, run the script resetadminpwd.sh on the UI virtual machine:
Note: The $ character should not be used in new-password. If you want to use $, reset the admin password using the script to a temporary password without a $ and then reset the admin password to the required password in the vCenter Operations admin console.
For related information, see Automated lockout of the admin account in the vCenter Operations Manager 5.0.x vApp (2030185).