Search the VMware Knowledge Base (KB)
View by Article ID

Changing the default VMware vCenter Server Appliance 5.1 and 5.5 database password (2056968)

  • 1 Ratings

Details

This article provide steps to change the default password of VMware vCenter Server Appliance database when required or if the password is compromised.

Solution

To change the default password:

  1. Change the embedded database password:

    1. Connect to the vCenter Server Appliance using SSH.
    2. Open the embedded_db.cfg file by running this command:

      vi /etc/vmware-vpx/embedded_db.cfg

    3. In the file, locate EMB_DB_'PASSWORD' and change the password between the single quotation marks.

  2. Change the password for the vc and postgres database users:

    1. Connect to the vPostgres database for SQL execution by running this command:

      /opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres

    2. Run these SQL statements to change the passwords for the vc and postgres users:

      alter user postgres with password 'new-password';
      alter user vc with password 'new-password';


    3. Exit the database by running this command:

      \q

    4. Open the .pgpass file by running this command:

      vi /root/.pgpass

    5. Modify the .pgpass file with the new password:

      localhost:5432:VCDB:postgres:new-password
      localhost:5432:postgres:postgres:new-password
      localhost:5432:VCDB:vc:new-password


  3. Change the postgres database password:

    1. Change the password for the vPostgres database by running this command:

      passwd postgres

    2. Type the new password.
    3. Retype the new password.

  4. Update the encrypted password in the vpxd.cfg file by running this command:

    /usr/sbin/vpxd -p

  5. Enter the password when prompted.
  6. Run this command to restart the vpxd service:

    /etc/init.d/vmware-vpxd restart

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 1 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 1 Ratings
Actions
KB: