Linux Check User Password Expiration Date and Time

Originally published at: https://www.cyberciti.biz/faq/linux-howto-check-user-password-expiration-date-and-time/

How do I check the user account password expiry information on Linux? How do I check users password expiry information under Linux operating systems?

Use the chage command.

chage -l root

Last password change : Oct 26, 2018
Password expires : never
Password inactive : never
Account expires : never
Minimum number of days between password change : 0
Maximum number of days between password change : 99999
Number of days of warning before password expires : 7


Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki