How to set expiry date for user in Linux

How to set expiry date for user in linux

In Previous tutorial we learn about how to add a new  user and how to set passwd to user in linux now we will learn about changing the password parameters in linux.

For changing of the password parameters and set expiry date you need to use the chage command. It will display password expiry information as well as changes the number of days between password changes and the date of the last password change. This information is used by the system to determine when a user must change his or her password.