Skip to main content

Reset the Root or ccadmin Password for Horizon Cloud Connector 2.4.1 and Earlier

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

  1. 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.

  2. From your vCenter view, on the Horizon Cloud Connector VM, select Reset > Yes.

  3. Return to the Web Console that you opened in Step 1.

  4. Edit the GRUB entry:

    1. Highlight the default boot entry and press e to edit.
    2. Locate the line starting with linux
    3. Append the following at the end of that line: rw init=/bin/bash
    4. To save your change, press F10 or Ctrl+X. (If you want to cancel this procedure, press Esc.)
  5. After the above steps, the VM will reboot.

  6. After the system boots into a bash shell, reset the password for the desired user (root or ccadmin) by typing passwd root or passwd ccadmin.

  7. Follow the on-screem prompts to enter the new password, and re-enter the password to confirm.

  8. To relabel SELinux, create an autorelabel file by running the command touch /.autorelabel

  9. 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.

  1. 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.

  2. Use vSphere Client to restart the appliance. As soon as the OS splash screen appears, type e to open the GNU GRUB editor.

    Note: You must type e quickly 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.

  3. In the GNU GRUB editor, find the line that begins with linux. At the end of this line, add a space followed by rw init=/bin/bash.

  4. Press F10 to resume the appliance restart.

  5. At the command prompt, run the following command.

    pam_tally2 --user=root --reset
    
  6. At the command prompt, type passwd. Then type and reenter the new root password.

    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
    
  7. 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.

  1. Use vSphere Client to launch the console for the Horizon Cloud Connector virtual appliance and log in to the appliance as the root user.

  2. Run the following command.

    pam_tally2 --user=ccadmin --reset
    
  3. Set the new password for the ccadmin account.

    passwd ccadmin
    
    

    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.

Was this page helpful?

Provide feedback for this topic

Was this topic helpful?

Please do not include any personal or confidential information.

Generating link…