smoraneng
Contributor
Contributor

Unlock Root account?

Jump to solution

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
0 Kudos
6 Replies
Yuva_1990
Hot Shot
Hot Shot

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.

0 Kudos
roydfreeman
Hot Shot
Hot Shot

Link doesn't work.

0 Kudos
Yuva_1990
Hot Shot
Hot Shot

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

0 Kudos
LeeLC
Contributor
Contributor

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

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

One missing quote would cause syntax error

0 Kudos
bcbomb47
Enthusiast
Enthusiast

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

0 Kudos
Aditya2018
VMware Employee
VMware Employee

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