It can be checked in /etc/shadow file in it's 8th field.
Code:
~$ grep 'username' /etc/shadow
OR
~$ awk -F":" '/username/ {print $8}' /etc/shadow
It contains the date when the user account expires once exceeded.
As per manual of shadow:
Quote:
expire
An absolute date expressed as the number of
days since the Unix Epoch (January 1, 1970).
When this number is reached the login can no
longer be used. For example, an expire value
of 13514 specified a login expiration of
January 1, 2007.
|
Also once go through manuals for more clear understanding: