Skip to content
theDXT
  • Home
  • IT
  • Scripts
  • GitHub
  • LinkedIn
  • X (Twitter)
  • Search Icon
VMware vCenter Disable Root Password Expiry

VMware vCenter Disable Root Password Expiry

September 14, 2024

The root password for VMware vCenter expires every 90 days by default. Depending on your vCenter setup, you may want to disable the root password expiry.

In this post, I will show you step-by-step how to disable the root password expiry for VMware vCenter using the GUI and the CLI.

GUI Way

  • Log in to the vCenter Server Management interface as root (it used to be called the vCenter Server Appliance Management Interface (VAMI)).
  • Click on Administration.
  • Click on Edit beside Password expiration settings.
  • Select No and click Save.

The password expiry for the root user is now disabled.

CLI Way

  • SSH into vCenter.
  • Run the command shell to start a BASH session.

To turn off the password expiry for the root account, we will use the command chage which is the change user password expiry information command.

  • Run the following command to see the currently configured expiry settings for the root user chage -l root
  • Run the following command to turn off the expiry for the root user chage -I -1 -m 0 -M -1 -E -1 root
  • Running chage -l root again will confirm that the settings are now in place and the root account no longer has a password expiry.

The parameters we used with chage are:

  • -I is the number of days of inactivity before the account is locked after a password expires. If this was set to 5 days and the account was not used for 5 days after the password expires, then on the 6th day, the account would be locked. We use the -1 parameter to disable all of this.
  • -m is the number of days before the password can be changed. We use 0 to allow immediate password changes.
  • -M is the maximum number of days before a password is considered expired. We use -1 again to deactivate this.
  • -E is the expiry date for the account. As this is the root account, we don’t want it to expire. We use the parameter -1 again to turn this off.

That’s all it takes to disable the root password expiry in VMware vCenter. If you want to read more, here is the VMware documentation.

Related posts:

Reset VMware vCenter Root Password Install VMware vCenter Install VMware vCenter Certificate in Windows VMware vCenter Reduced Downtime Upgrade with Automatic Switchover

IT
How To, passwords, VCSA, VMware

Post navigation

PREVIOUS
I Went to VMware Explore 2024
NEXT
Reset VMware vCenter Root Password

3 thoughts on “VMware vCenter Disable Root Password Expiry”

  1. Pingback: Reset VMware vCenter Root Password - theDXT
  2. Gatse Audreon says:
    March 3, 2025 at 8:13 am

    Bonjour besoin de votre Support pour certaines manipulations au niveau de mon Infra

    Reply
    1. Daniel Keer says:
      March 8, 2025 at 6:59 pm

      Je peux essayer. C’est quoi le problem?

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

About Me

Daniel Keer

Project Lead, Senior Consultant at Digitally Accurate Inc.

Awards and Certificates
VMware vExpert ⭐⭐⭐
Omnissa Tech Insider ⭐⭐

Consulting

Stuck on something? Reach out to Digitally Accurate Inc. and we can provide expert IT consulting to help you move forward.

  • Veeam Backup & Replication 13 Windows Install
  • Enable Windows 10 Extended Security Updates
  • slmgr.vbs
  • CyberChef
  • Install or Upgrade Duo Authentication for Windows Logon
© 2026   Copyright. All Rights Reserved.