vSphere · February 1, 2022 0

VMware Appliance/s set Root Account to ‘Never Expire’

I am taking vCenter appliance as an example, same steps can be applied on any VMware Appliance.

  1. Connect to the vCenter Server Appliance with an SSH session and the root user credentials.
  2. Use the following commands to get to the command prompt:
  • shell.set –enabled true
  • shell

 

 

 

 

 

 

  1. Change the root password using passwd command: .
  2. Verify the root account password has been changed using chage -l root command:
  3. You could set the root password to never expire by running this command: chage -I -1 -m 0 -M 99999 -E -1 root
  4. Run chage -l root command again to validate.