This page is specific for Horizon Cloud Connector version 2.4.1 and earlier, to reset the password for the root or ccadmin user of the Horizon Cloud Connector appliance if you have lost the original password or want to change it.
This page describes how to reset the password for the root or ccadmin user of the Horizon Cloud Connector appliance if you have lost the original password or want to change it.
Versions 2.5 and later - reset the root or ccadmin password
-
Use the vSphere Client to launch the Web Console for the Horizon Cloud Connector virtual appliance. The console will open in its own browser tab.
-
From your vCenter view, on the Horizon Cloud Connector VM, select Reset > Yes.
-
Return to the Web Console that you opened in Step 1.
-
Edit the GRUB entry:
- Highlight the default boot entry and press
eto edit. - Locate the line starting with
linux - Append the following at the end of that line:
rw init=/bin/bash - To save your change, press F10 or Ctrl+X. (If you want to cancel this procedure, press Esc.)
- Highlight the default boot entry and press
-
After the above steps, the VM will reboot.
-
After the system boots into a bash shell, reset the password for the desired user (
rootorccadmin) by typingpasswd rootorpasswd ccadmin. -
Follow the on-screem prompts to enter the new password, and re-enter the password to confirm.
-
To relabel SELinux, create an autorelabel file by running the command
touch /.autorelabel -
Reboot the system and return to normal operationg by runnning the command
exec /sbin/init
Versions 2.4.1 and earlier - reset the root password
To reset the root password, you must set certain parameters during the appliance's restart sequence.
-
Use vSphere Client to launch the console for the Horizon Cloud Connector virtual appliance. Click inside the console window to make the cursor active in the console.
-
Use vSphere Client to restart the appliance. As soon as the OS splash screen appears, type
eto open the GNU GRUB editor.Note: You must type
equickly because the OS splash screen appears only momentarily. If you are unable to open the GNU GRUB editor in time, restart the appliance and try again. -
In the GNU GRUB editor, find the line that begins with
linux. At the end of this line, add a space followed byrw init=/bin/bash. -
Press F10 to resume the appliance restart.
-
At the command prompt, run the following command.
pam_tally2 --user=root --reset -
At the command prompt, type
passwd. Then type and reenter the newrootpassword.Note: Ensure that the new password meets the security standards of a strong password. Verify that the password contains a minimum of eight characters with at least one capital, one numeric, and one special character.
The following output appears when the password reset is complete.
passwd: password updated successfully -
Run the following sequence of commands.
umount / reboot -f
After the appliance restarts, you can log in using the new root password.
Versions 2.4.1 and earlier - reset the ccadmin password
Use the following procedure to reset the ccadmin password if you are unable to log in as the ccadmin user. For example, the ccadmin account locks automatically after multiple authentication failures.
-
Use vSphere Client to launch the console for the Horizon Cloud Connector virtual appliance and log in to the appliance as the
rootuser. -
Run the following command.
pam_tally2 --user=ccadmin --reset -
Set the new password for the
ccadminaccount.passwd ccadminNote: Ensure that the new password meets the security standards of a strong password. Verify that the password contains a minimum of eight characters with at least one capital, one numeric, and one special character.
Was this page helpful?