Monday, November 11, 2013

How To Disable ESXi Password Restrictions

The following instructions will allow you to change the "root" user's password to something simple like "password".

ESXi 5.0, ESXi 5.1 and ESXi 5.5

1. Edit /etc/pam.d/passwd and add "enforce=none" to the end of the "password   requisite" line:
esx# vi /etc/pam.d/passwd
password  requisite  /lib/security/$ISA/pam_passwdqc.so \
        retry=3 min=8,8,8,7,6 enforce=none

2. Change password:
esx# passwd

ESXi 4.1

1. Edit /etc/pam.d/system-auth and add "enforce=none" to the end of the "password   requisite" line:
esx# vi /etc/pam.d/system-auth
password  requisite  /lib/security/$ISA/pam_passwdqc.so \
        retry=3 min=8,8,8,7,6 enforce=none

Note: You will need to force the write with an exclamation ":wq!".

2. Change password:
esx# passwd

Note: The enforce setting will be lost on the next reboot, so change your password now.

ESXi 4.0

1. Edit /etc/pam.d/common-password and add "enforce=none" to the end of the "password   requisite" line:
esx# vi /etc/pam.d/common-password
password  requisite  /lib/security/$ISA/pam_passwdqc.so \
        retry=3 min=8,8,8,7,6 enforce=none

2. Change password:
esx# passwd

ESX 4.1

1. Edit /etc/pam.d/system-auth and add "enforce=none" to the end of the "password   required" line:
esx# vi /etc/pam.d/system-auth
password  required  /lib/security/$ISA/pam_passwdqc.so \
        min=8,8,8,7,6 similar=deny match=0 enforce=none

2. Change password:
esx# passwd

ESX 4.0

1. Edit /etc/pam.d/system-auth-generic and add "enforce=none" to the end of the "password   required" line:
esx# vi /etc/pam.d/system-auth-generic
password  required  /lib/security/$ISA/pam_passwdqc.so \
        min=8,8,8,7,6 similar=deny match=0 enforce=none

2. Change password:
esx# passwd


3 comments:

Cheap Essay Writing Service said...

proved to be a watershed year for business migration to cloud-based services, and with the much-anticipated release of VMware's vSphere 5, hosts and providers concerned with cloud security welcome the addition of the ESXi stateless firewall. An absent feature since the ESX server, the addition of the ESXi firewall provides another layer of defense, functioning fundamentally as a packet filter. Enabled by default, the firewall blocks all incoming and outgoing traffic with exceptions like DNS and DHCP. Configuring inbound and outbound TCP and UDP ports is an addition, also as configuring specific rulesets within the ESXi Shell. VMware Installation Bundles

maxx said...

I was very impressed by this post, this site has always been pleasant news. Thank you very much for such an interesting post. Keep working, great job!
y8
friv

uraj said...

Your life is a unique journey that involves experiences, relationships, personal growth, and self-discovery. It is shaped by a multitude of factors such as your upbringing, education, values, beliefs, and choices you make along the way. Each person's life is distinct, and there is no one-size-fits-all answer to how to navigate it. what is cloud CAD As for the universe, it is a vast expanse of space and time that encompasses everything we know, including galaxies, stars, planets, and all forms of matter and energy.