Expiring the Linux user account

chage -E0 dmitri
Expiring an account via use of the 8th field in /etc/shadow (using chage -E) will block all access methods that use PAM to authenticate a user.

Verify if the account has been expired:
chage -l dmitri|grep "Account expires"
Account expires                                         : Jan 21, 1990