You can impose stricter or looser password aging restrictions for a host than those provided by default.

1

Log in to the service console and acquire root privileges.

2

To change the maximum number of days a user can keep a password, use the following command.

esxcfg-auth --passmaxdays=number_of_days
3

To change the minimum number of days between password changes, use the following command.

esxcfg-auth --passmindays=number_of_days
4

To change the warning time before a password change, use the following command.

esxcfg-auth --passwarnage=number_of_days