Header Shadow Image


Changing vSphere Server root password and setting no expiry or no history

This is only ok if doing so for non user/client facing systems such as testing or engineering or lab environments.  Otherwise, DO NOT do this.  Changing vSphere Server root password and setting no expiry or no history can be done as follows:

# chage -l root

Last password change                                         : Jun 22, 2025
Password expires                                             : Sep 20, 2025
Password inactive                                            : never
Account expires                                              : never
Minimum number of days between password change               : 0
Maximum number of days between password change               : 0
Number of days of warning before password expires            : 7

# chage -M 99999 -m 0 -W 7 -I -1 root
# chage -l root

Last password change                                        : Jun 22, 2025
Password expires                                            : never
Password inactive                                           : never
Account expires                                             : never
Minimum number of days between password change              : 0
Maximum number of days between password change              : 99999
Number of days of warning before password expires           : 7

# grep -EiR member *
system-password: password required pam_pwhistory.so debug use_authtok enforce_for_root remember=0

The parameter, remember=0 was 5 before.

Subscribe
Notify of
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments

     
  Copyright © 2003 - 2025 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License

 

0
Would love your thoughts, please comment.x
()
x
The IT Development and Technology Mini Vault | MicroDevSys.com
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.