VMware Skyline Collector Password Reset
Symptoms
The root and/or admin account password of VMware Skyline Collector Appliance fails
The root and/or admin account of the VMware Skyline Collector Appliance is locked or password is expired
The root and/or admin account password has been lost or forgotten
Purpose
This article provides the steps to reset the Skyline Collector root and admin passwords.
Cause
For passwords that have expired, Skyline Collector Appliance root account password expired after 60 days.
For accounts that are locked, the default root account lockout policy is set to 3 incorrect authentication attempts.
Resolution
To reset the Skyline collector Admin account password:
- Make a snapshot of the Skyline Collector Appliance
- Login into the console of the collector appliance.
- Change directory to /usr/local/skyline/ccf/config/generated/
cd /usr/local/skyline/ccf/config/generated/
- Delete the file credentials.json
rm credentials.json
- Restart the collector service
systemctl restart ccf-collector
- Login to the Skyline Collector UI using the admin user and the default admin password and proceed to change the password as desired
- Remove the snapshot from step 1 if applicable.
To reset the root password for the Skyline Collector Appliance:
- Take a snapshot or backup of the Skyline Collector Appliance before proceeding.
Caution: Do not skip this step
- Reboot the Skyline Collector Appliance.
- After the Skyline Collector Photon OS starts, press the e key to enter the GNU GRUB Edit Menu.
- Locate the line that begins with the word Linux.
- Append these entries to the end of the line:
rw init=/bin/bash
The line should look like the following screenshot:
- Press F10 to continue booting.
- Run the command
mount -o remount,rw /
- In the Command prompt, enter the command passwd and provide a new root password (twice for confirmation):
passwd
- (Optional) In the Command prompt, enter the below command to unlock the root account
pam_tally2 -r -u root
- Reboot the Skyline Collector Appliance by running this command:
reboot -f
- Confirm that you can access the Skyline Collector Appliance using the new root password.
- Remove the snapshot taken in Step 1 if applicable.