A part of my job as a VMware Certified Instructor is to update our lab systems whenever new vSphere versions come out.
After upgrading from 5.5 to 6.0 I decided we should change passwords, however I was unable to choose the unsecure password I had decided to use:
Weak password: based on a dictionary word and not a passphrase.
Obviously, we need to mess with the password complexity requirements to resolve this.
Password complexity is managed by the /etc/pam.d/passwd file.
Here is the default content:
To temporarily disable password complexity requirements we can comment out the first and third lines and edit the second with command: vi /etc/pam.d/passwd
Remember you can type “i” to enter insert mode, press “ESC” button to stop, then type 😡 (and press Enter) to exit and save.
If you messed up and want to exit without saving type :q! (and press Enter).
A quick look at the file to see the end result:
Let us try changing password again:
Once the host comes back up I suggest you edit the /etc/pam.d/passwd file back to its original settings.
Please leave a comment if this was useful to you.
Incoming search terms:
- vmware esxi disable password complexity
- disable esxi 6 7 password policy
- esxcli disable password complexity
- esxi 6 5 the password change operation failed Please ensure that your password meets the complexity
- esxi change complexity password
- esxi disablw password complexity
- esxi set password complexity
- how to change esxi 6 7 password complexity
- how to disable password complety in esxi
- modify esxi password complexity