Reset vCenter Password When It Says Password Has Already Been Used

Advertisement
Support vNetes
Buy Me a Coffee QR Code
Fuel Free Runbooks

Enjoying our VMware & Kubernetes guides? Scan QR or click below to support!

Buy me a coffee

This tutorial will show you how to Reset vCenter Password When It Says 'Password Has Already Been Used'.

Problem: The vCenter root account password expired, and it prompted me to reset it. Somehow, a new password was set. The problem is that the password is configured somewhere in seldom-used applications, and I am unable to figure out where it is configured. Additionally, these seldom-used applications do not have access to update the current password.

The steps below may be helpful for resetting the previously expired password on vCenter.

{alertError}Note: This method may require approval if it conflicts with your organization's security policies.

Step 1: "passwd' command is used to the change password of the current login account.

passwd

Step 2: "/etc/security/opasswd" is the file where password hashes and the account database are stored. Use the below commands to reset previously expired password on vCente for root account.

! To read the file, use the cat command:
{codeblock}cat /etc/security/opasswd
! **Best practice:** Always take a backup of the file before making any changes, use the cp command to copy the file.
{codeblock} cp /etc/security/opasswd /etc/security/opasswd.bkp
! Verify that the backup file is present using the ls command.
{codeblock}ls /etc/security/opasswd.bkp
! To clear the contents of the `/etc/security/opasswd` file, use the command below. Do not modify or remove whitespace from this command.
{codeblock}echo " " > /etc/security/opasswd
! Read the file again using cat to verify that the opasswd file is empty.
{codeblock}cat /etc/security/opasswd
! Now you can reset the previously used password for the root account on vCenter
{codeblock}passwd
Output: Refer the screenshot & text output for reference.

Reset vCenter Password When It Says 'Password Has Already Been Used'

{output}
root@vcsa-01a [ - ]# passwd
New password:
Retype new password:
Password has been already used. Choose another.
passwd: Authentication token manipulation error
passwd: password unchanged
root@vcsa-01a [~]# cat /etc/security/opasswd
root:0:2:$6$/qwQ2/wo.zdo/jIM$BSywW7czLdxluuTHVzXvxbzhvOWsmMd6tD6qujw1051LrbQLWD63r.kUojW6pIR7sMMQWbhcGUWMIfwHBpK.b1, $6$uQhF02nGrZqh7MHt $ViDeQykePK7Uoen17qV/n
soilBwmvRAxmCMZSMUBIAdp1F5/2zdHbunYFISX8NeZvAUnZO9R22how950bKiKs0
root@vcsa-01a [~]# cp /etc/security/opasswd /etc/security/opasswd.bkp
root@vcsa-01a  [ - ]# ls /etc/security/opasswd.bkp
/etc/security/opasswd.bkp
root@vcsa-01a [~]# echo " " > /etc/security/opasswd
root@vcsa-01a [~]# cat /etc/security/opasswd
root@vcsa-01a  [ - ]# passwd
New password:
Retype new password:
passwd: password updated successfully
root@vcsa-01a  [ - ]#
{/output}

“Information is power. But like all power, there are those who want to keep it for themselves.”

― Aaron Swartz

I hope this information is useful for you. Please forgive any typos or incomplete sentences.

Thanks for Visiting vNetes.com

Advertisement
Support vNetes
Buy Me a Coffee QR Code
Fuel Free Runbooks

Enjoying our VMware & Kubernetes guides? Scan QR or click below to support!

Buy me a coffee
Did this guide save your day?
Support independent engineering tutorials & keep technical guides open for everyone.

Discussion 0

Author Active
Leave a Response
Verified Discussion Policy: Comments are moderated by the engineering team to ensure high-quality technical answers and zero spam.
Join the Discussion
Markdown supported: Use `command` for inline code
PREVIOUS POST
3 min read
NEXT POST
3 min read
Advertisement
Theme Mode