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.x
Telco Cloud Platform 2.7, 3.0
Note: Before taking any of the following steps, 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. 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-passwordpassword requisite pam_pwquality.so dcredit=-1 ucredit=-1 lcredit=-1 ocredit=-1 minlen=6 difok=4 enforce_for_rootminlen = 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-passwordChanging 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.