Configure the Local User Password Expiration Policy for SDDC Manager
Configure password expiration for SDDC Manager on a per-user basis for local users.
User | Setting | Default Value |
---|---|---|
root | Maximum number of days between password change | 90 |
Minimum number of days between password change | 0 | |
Number of days of warning before password expires | 7 | |
vcf | Maximum number of days between password change | 90 |
Minimum number of days between password change | 0 | |
Number of days of warning before password expires | 7 | |
backup | Maximum number of days between password change | 90 |
Minimum number of days between password change | 0 | |
Number of days of warning before password expires | 7 |
UI Procedure
- Log in to the SDDC Manager appliance using SSH asvcf.
- Change to therootuser.su -
- Change the maximum number of days between password change using the following command.chage --maxdays <your_value> root
- Change the minimum number of days between password change using the following command.chage --mindays <your_value> root
- Change the number of days of warning before password expires using the following command.chage --warndays <your_value> root
- Repeat this procedure for the remaining local accounts.
PowerShell Procedure
- Start Windows PowerShell.
- Replace the values in the sample code and run the commands in the PowerShell console.$sddcManagerFqdn = "sfo-vcf01.sfo.rainpole.io" $sddcManagerUser = "administrator@vsphere.local" $sddcManagerPass = "VMw@re1!" # Replace with the name of your management domain $sddcDomainName = "sfo-m01" $vmName = "sfo-vcf01" $guestuser = "root" $guestPassword = "VMw@re1!” $localUsers = @("root","vcf","backup") $maxDays = "90" $minDays = "0" $warningDays = "7"
- Perform the configuration by running the command in the PowerShell console.Update-LocalUserPasswordExpiration -server $sddcManagerFqdn -user $sddcManagerUser -pass $sddcManagerPass -domain $sddcDomainName -vmName $vmName -guestUser $guestUser -guestPassword $guestPassword -localUser $localUsers -minDays $minDays -maxDays $maxDays -warnDays $warningDays