VMware Support Community
smoraneng
Contributor
Contributor
Jump to solution

Unlock Root account?

I am trying to log into my skyline collector, but the root account is locked due to failed login attempts, how do you go about unlocking the account? 

1 Solution

Accepted Solutions
Yuva_1990
Hot Shot
Hot Shot
Jump to solution

Reply
0 Kudos
6 Replies
Yuva_1990
Hot Shot
Hot Shot
Jump to solution

Hi,

To reset the root password, please follow

https://github.com/vmware/photon/blob/master/docs/photon-os-troubleshooting-guide.md#resetting-a-los...

Regards,

Yuvaraj

Skyline Support Moderator.

Reply
0 Kudos
roydfreeman
Expert
Expert
Jump to solution

Link doesn't work.

Reply
0 Kudos
Yuva_1990
Hot Shot
Hot Shot
Jump to solution

Hi Royd,

Thanks for the response.Please find the below steps

To reset the root password:

  1. Restart the Skyline appliance.
  2. From the Console screen of the appliance when you see the PhotonOS splash screen press "e".
  3. At the end of the PhotonOS boot command add "rw init=/bin/bash' "
  4. Press F10 to access to the command prompt
  5. Type "passwd" to set the root password
  6. Type "reboot -f" to reboot the appliance

Regards,

Yuvaraj

Skyline Support Moderator

https://kb.vmware.com/s/article/52652

LeeLC
Contributor
Contributor
Jump to solution

The line  "rw init=/bin/bash' "

should be  "rw init='/bin/bash' "

One missing quote would cause syntax error

bcbomb47
Enthusiast
Enthusiast
Jump to solution

I have locked out my root account "Account locked due to X failed logins"

I have used the information in KB52652 to reset the root password but it didn't unlock the account. Is there something else you need to do after resetting the password in order to unlock it?

VMware Knowledge Base

Reply
0 Kudos
Aditya2018
VMware Employee
VMware Employee
Jump to solution

Hello,

The KB has the steps to reset the password, if the account is locked you will need to clear the lock after resetting the password.

Please run the following command after resetting the password on the shell:

/sbin/pam_tally2 -r -u root

Sincerely, Aditya Gottumukkala Skyline Skyline Moderator VMware Inc