Menu

Virtual Geek

Tales from real IT system administrators world and non-production environment

Reducing Password Complexity and History in Linux VMware for Lab Testing Purposes

I day to day work in my Lab. While working on my Linux / VMware / vSphere lab I always encounter frequent password resets, password not accepted because of dictionary check and old password history. Whenever I want to do quick labs. password resets take enormous time, for this reason I use below settings to loose or decrease the security in the Lab (I am ok with it) for password for quick access and to avoid repeated password related tasks, so I don't have to deal with password configuration every time visit my lab. 

Note: This configuration is not recommended for Production environment

Below are few concerns for the lab for which I will change settings.
Minimum Length
Security do no enforce for root
Dictionary check
Password History.

Password Expiry: I used chage -I -1 -m 0 -M -1 -E -1 root to ensure the password and account never expire.
Complexity & Enforcement: I modified /etc/pam.d/system-password to adjust the minimum length (minlen=6) and removed enforce_for_root to prevent these rules from restricting the root user.
Quality Checks: In /etc/security/pwquality.conf, I disabled the dictionary check (dictcheck = 0) and turned off strict enforcement (enforcing = 0).
History Bypass: I identified /etc/security/opasswd as the location where old passwords are tracked, allowing you to clear or rename it to reuse old passwords.

#Checks root password expiry date and changes to never
chage -l root
chage -I -1 -m 0 -M -1 -E -1 root
chage -l root

Last password change                                    : Jan 10, 2026
Password expires                                        : never
Password inactive                                       : never
Account expires                                         : never
Minimum number of days between password change          : 0
Maximum number of days between password change          : -1
Number of days of warning before password expires       : 7

#root password policy should not apply to root user
/etc/pam.d/system-password
# Edit file and change minlen, comment or remove enforce_for_root

#multiple password policies
/etc/security/pwquality.conf
# Edit file and change multiple settings minlen, comment enforce_for_root, dictcheck to 0, enforcing to 0

#password policies for users to remember old password
cat /etc/security/opasswd
# Either rename this filename or comment the line for user or blank it out

Below is the screenshot of the implementation.

terminal window showing Linux command line output for /etc/pam.d/system-password and pwquality.conf to configure password complexity and enforcement rules, Configuration of Linux password aging and complexity using chage and pam_pwquality commands in a root terminal session.

Useful Articles
Configure, Manage and Assign License Settings for VMware vCenter Server and ESXi
Administrating licenses in vSphere client
Assign vSAN licenses in vSphere client
Solved: VMware Snapshots Virtual Machines disks consolidation is needed
Performing vCenter Offline Updates Via Your On-Prem Web Server Securely & Seamlessly
Configure VCSA Update Web Repository Settings with PowerShell and REST API
Retrieve VCSA vCenter Version with PowerShell REST API
Leveraging PowerShell to Stage VCSA Updates via vCenter REST API
Check VCSA Upgrade Staging Progress using PowerShell vCenter REST API
Install VMware VCSA Patch Upgrade using PowerCLI vCenter REST API
Get VMware vCenter Appliance Version using Broadcom PowerCLI VCSA REST API

Go Back

Comment

Protected by Mathcha

Blog Search

Page Views

1 5 7 3 4 7 0 2

Archive

Follow me on Blogarama