This article provides steps that can be used to change the requirements for password complexity when setting a new password for the root account, beyond the default settings, e.g. if required by specific company security policies.
VMware vCenter Server 8.0.x
Note: Before taking any of the following steps, please ensure to create a snapshot or backup of the vCenter Server Appliance (VCSA). If the VCSA is a member of an Enhanced Linked Mode (ELM) replication, please be aware that offline snapshots (in powered off state) need to be created for all ELM nodes.
To edit the password complexity settings,
# cp -p /etc/applmgmt/appliance/system-password /etc/applmgmt/appliance/system-password-`date +%F_%H:%M:%S`.back
# vi /etc/applmgmt/appliance/system-password
password requisite pam_pwquality.so dcredit=-1 ucredit=-1 lcredit=-1 ocredit=-1 minlen=6 difok=4 enforce_for_root
minlen = establishes a measure of complexity related to the password length
lcredit = sets the minimum number of required lowercase letters
ucredit = sets the minimum number of required uppercase letters
dcredit = sets the minimum number of required digits
ocredit = sets the minimum number of required other characters
difok = sets the number of characters that must be different from those in the previous password
:wq
# service-control --restart applmgmt
# service-control --status applmgmt
-----
sample)
root@vcsa [ / ]# service-control --status applmgmt
Running:
applmgmt
# cat /etc/pam.d/system-password
# cat /etc/applmgmt/appliance/system-password
Changing only the /etc/pam.d/system-password setting will not save the change.
The setting will revert to the default value if you restart, stop, and then start the vCenter Server, or restart the service.
japaneseKB:vCenter のユーザー アカウント パスワード ポリシーを構成する方法
NOTE: This change will not be reflected in the VAMI UI for versions earlier than 9.1.