How can we help you today?

Re-enable Expired / Disabled / Blocked Linux Account

If you get the following error when trying to login to an account on a Linux OS the likelihood is that the account has been locked out / expired:

Your account has expired; please contact your system administrator

To re-enable an expired Unix account that has been locked out due to a timer you can run the following command via root or sudo user:

sudo chage -E -1 <username>

It may also be the case that the user is blocked by pam_tally. To list pam_tally blocked users you can run the following:

pam_tally2 --user example_user

To unlock an account / reset counter for failed login attempts we can run the following:

pam_tally2 --user example_user --reset
Leave a Reply

Your email address will not be published. Required fields are marked *

    ICTU LTD is a company registered England and Wales (Company No. 09344913) 142 Thornes Lane, Wakefield, England, WF2 7RE
    Copyright © 2025 ICTU LTD, All Rights Reserved.