ESX console password aging

Yesterday I did a post on how to change your ESX root password using a Powershell script and told you that I, as a good administrator, didn’t change my password for ages.
Today VMware just released this KB article on password aging in the ESX console. This way you can force a password change after an amount of time using the chage command.

Let’s take a closer look to this command using the man pages:

chage [-m mindays] [-M maxdays] [-d lastday] [-I inactive]
             [-E expiredate] [-W warndays] user

-m : the value of mindays is the minimum number of  days between  password  changes.

-M : the value of maxdays is the maximum number of  days during  which  a  password is valid.

-d  : the value of lastday is the number of days since January 1st, 1970 when the password was last  changed.
        The date  may also be expressed in the format YYYY-MM-DD.

-E : is used to set a date on which the user’s account will no longer  be  accessible.

-I  : is used to set the number of days of inactivity after a password has expired before the account is locked.

-W : is  used to set the number of days of warning before a password change is required.

To set a user’s password to expire in 90 days, run the following command:
chage -M 90 <username>

Related posts:

  1. Bulk change your ESX root password Tweet Have you ever been facing your security department demanding you to change your ESX root password? Well I did. At the current site there’s a strict security policy where...
  2. Unable to login to your ESX server Tweet Ivo Beerens posted this article last week on the defunct cimservera processes that render an ESX Host unmanageable. See also this VMWare KB Article. Symptoms include: Unable to log...
  3. Monitor ESX datastores using Hostmonitor Tweet A lot of customers I worked with use Advanced Hostmonitor from KS-Soft to monitor their Windows environment. So is the customer I  am currently working at. Advanced Hostmonitor is...
  4. VMware Storage Sudoku Tweet Last Friday I was brainstorming with Gabrie van Zanten about the optimal placement of the VMDKs across our LUNs. We tried to come up with an algorithm that could...

0 Comments on “ESX console password aging”

Leave a Comment