[VMC on AWS] How to change the expiry of root password for Cloud proxy of vRealize Log Insight Cloud
search cancel

[VMC on AWS] How to change the expiry of root password for Cloud proxy of vRealize Log Insight Cloud

book

Article ID: 327115

calendar_today

Updated On:

Products

VMware Cloud on AWS

Issue/Introduction

Purpose
If you want to change the expiry of root password for Cloud proxy, you can change it in the following steps.
This article explains how to change the expiry of root password for Cloud proxy of vRealize Log Insight Cloud.


Resolution

The root password expiry can be changed using the "chage" command. This should not have any impact on vRealize Log Insight Cloud. 

1. Log in to the Cloud proxy via console.
2. When prompted for credentials, enter root as the user name and password.
3. Type "chage -l root" command to check the current root password expiry.
e.g :
# chage -l root

Last password change : Feb 25, 2021
Password expires : May 26, 2021
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 90
Number of days of warning before password expires : 7
4. Type "chage -M [DESIRED NUMBER OF DAYS] root" command to change the root password expiry.
e.g :
# chage -M 120 root
5. Type "chage -l root" command to check the current root password expiry.
e.g :
# chage -l root

Last password change : Feb 25, 2021
Password expires : Jun 25, 2021
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 120
Number of days of warning before password expires : 7