VMware Cloud Community
tdubb123
Expert
Expert

cannot login to identity appliance root user locked out

how can I log into the identity appliance? The root user is locked out and I forgot the password.

I tried entering single user mode on boot up but did not work

Reply
0 Kudos
7 Replies
prestonville
Enthusiast
Enthusiast

Had this on my Postgres appliances used for the vRA database. Root had expired.

Was able to login as non-root account postgres then could su - and ran /opt/vmware/vpostgres/sbin/set_password which set root and postgres.

Can you use any other SSO accounts to get in ?

More info in VMware blog Virtual Appliances getting more secure with vSphere 5.5 - Part 2 | VMware vSphere Blog - VMware Blog...

But Mike Foley doesn't list a supported way to get in. I've now changed all appliances root accounts not to expire.


Reply
0 Kudos
Michael_Rudloff
Enthusiast
Enthusiast

Even when root passwords expire - you can still login using the console and reset the expiration ...

But from what i understand here is that it doesn't seem to be the case, but rather a forgotten password ?

In fact, I tend to create key files so I don't even need a password to get in via SSH for example ...

___ My own knowledge base made public: http://open902.com
Reply
0 Kudos
Michael_Rudloff
Enthusiast
Enthusiast

Just tried it myself. If you cannot even login using root when connecting via console, then you can use the SuSE 11 itself (as the identity appliance is based on that)

Here is how I did it.

Download the SUSE 11 iso (trial) and boot the Identity Appliance with it. Select "Rescue System"

identity-01.PNG

Wait until the rescue system has been booted

identity-02.PNG

Enter "root" and hit "Enter"

identity-03.PNG

  • Check which is the root partition using "fdisk -l" - here /dev/sda1
  • Mount the partition using "mount /dev/sda1 /mnt"
  • Mount the devices by using "mount -o bind /dev /mnt/dev
  • Change the root partition to be the active partition by using "chroot /mnt"
  • Change the password with "passwd root"
  • Hit exit, unmount the iso and reboot
  • Done

identity-04.PNG

___ My own knowledge base made public: http://open902.com
Reply
0 Kudos
tdubb123
Expert
Expert

hi

what isthe password for postgres?

Reply
0 Kudos
tdubb123
Expert
Expert

tried using suse rescue and no luck

any idea?Screen Shot 2015-07-08 at 6.29.53 AM.png

Reply
0 Kudos
tdubb123
Expert
Expert

chroot /mnt

keep getting

failed to run command 'bin/bash'  exec format error

Reply
0 Kudos
tdubb123
Expert
Expert

might have downloaded the wrong iso. will try with x64

Reply
0 Kudos