Overview
You might have created a system account in EAAA Application and want to set the password expiry duration of the user accounts( Example: Set a policy that the passwords do not expire)
Solution
By default, the passwords do not expire of OS user accounts.
- You can login to the node as root user and use the passwd or change commands to specifically set the expiry period for passwords
- Use either one of the below commands to set the password expiry:
-
passwd -x <Number of days> <username>
-
change -M <Number of days> <username>
-
-
Note: Replace <username> in the above commands with the actual username
- If an expiration date has been added to an account and you wish to remove it using the above commands with <Number of days> filled as -1
Note: Our general recommendation is to set a password expiry period for users.
Priyanka Bhotika
Comments