Skip to main content

[Quicktip] Rest root password in VMware vCenter VCSA - since 6.7 U1(!)


vNote42
Forum|alt.badge.img+13
  • On the path to Greatness
  • 1246 comments

It is not uncommon to reset root password in VMware VCSA (vCenter Service Appliance). This can be necessary when account is locked or password is expired. Normally, you have to shut it down, enter GRUB and edit start parameter to boot into bash. There you can reset root password. Afterwards you boot VM again. Here is the link to this procedere: https://kb.vmware.com/s/article/2147144

With vCenter 6.7 U1 it us much easier! Since then it is possible to use a Single-Sign On (SSO) administrator account (for example: administrator@vsphere.local) to login to Appliance Interface (Port 5480) and shell. And exactly this can be used to reset the root password. In short it goes like this: 

  1. Take a snapshot/backup of VCSA - it is always a good idea to start with a backup 
  2. Login as a SSO-administrator using a SSH client or console.
  3. Enable and start shell:
    1. shell.set --enable true
    2. shell
  4. Change root password

    1. sudo passwd root​​​​​​​​
  5. Done

Here is the link to the more detailed VMware KB-article: https://kb.vmware.com/s/article/75174.

I had this finding these days, maybe it is new for some of you too.

8 comments

MicoolPaul
Forum|alt.badge.img+23
  • 2361 comments
  • April 15, 2021

Thanks for sharing, makes it easier 😀 though probably less secure as it’s any SSO user with certain permissions from the looks of that article.

 

Also an interesting note:

“For 7.0U1 and 6.7P03 there are a few changes:

 

You can also log in to VAMI using SSO administrator and reset the root password from there.”

 

Interesting to see it’s not just root that can log into VAMI now!


vNote42
Forum|alt.badge.img+13
  • Author
  • On the path to Greatness
  • 1246 comments
  • April 15, 2021
MicoolPaul wrote:

Thanks for sharing, makes it easier 😀 though probably less secure as it’s any SSO user with certain permissions from the looks of that article.

 

Also an interesting note:

“For 7.0U1 and 6.7P03 there are a few changes:

 

You can also log in to VAMI using SSO administrator and reset the root password from there.”

 

Interesting to see it’s not just root that can log into VAMI now!

You are right, since 6.7 U3 (Build 16713306) and 7.0 U1 you can reset password in VAMI too. Before this, there is no user administration available for other users than root.


Rick Vanover
Forum|alt.badge.img+10
  • RICKATRON
  • 766 comments
  • April 16, 2021

Nice one vnote!


Shaokat
Forum|alt.badge.img+3
  • Influencer
  • 127 comments
  • April 27, 2021

is there anything change for V7.0 ?


vNote42
Forum|alt.badge.img+13
  • Author
  • On the path to Greatness
  • 1246 comments
  • April 27, 2021
Shaokat wrote:

is there anything change for V7.0 ?

Not really. This works since 6.7 U1.


Shaokat
Forum|alt.badge.img+3
  • Influencer
  • 127 comments
  • April 27, 2021

oops. would you please suggest anything for u7.x?


vNote42
Forum|alt.badge.img+13
  • Author
  • On the path to Greatness
  • 1246 comments
  • April 28, 2021
Shaokat wrote:

oops. would you please suggest anything for u7.x?

do not let your password expire ;)

 


Shaokat
Forum|alt.badge.img+3
  • Influencer
  • 127 comments
  • April 28, 2021
vNote42 wrote:
Shaokat wrote:

oops. would you please suggest anything for u7.x?

do not let your password expire ;)

 

I thing so that's is okay 


Comment