March 13, 2018

Linux command chage


❑ chage(Change age) : This is A Linux command to change password property of /etc/shadow file.
* Password property : All fields in / etc / shadow except login name and hash password fields.
* Here is password's property of /etc/shadow(Link).

OptionDescription
-lPrint all password property.
-dChange last password changed date.
* If set to 0, the password must be changed at the next login.
-mChange minimum date of password use.
-MChange maximum date of password use.
-WChange warning date to notify the password change before expiration.
-IChange inactive day that is the additional date to change the password possible.
-EChange password expiration date(YYYY-MM-DD)