Fix: This account is currently not available. (Linux SSH)


When you try to do an SSH on a particular Linux or Unix-Like Server and you get an error "This account is currently not available" that's because the user has been disabled.


$ ssh -p 22 dev@192.168.10.112
dev@192.168.10.112 password:

Last login: Wed Aug 2 11:23:51 2023 from dev@192.168.10.112

This account is currently not available.

Connection to dev closed.

Reason for the Error:

    The message indicates that the user is locked. If you are the root user, you can check it using the command,

    $ passwd -S dev
    
    dev L 08/04/2023 0 99999 7 -1

    As you can see the L next to dev user indicates that the user is locked.


How to fix it:

    As a root user run the below command to enable the user again,

    $ sudo passwd -u dev
    
    passwd: password expiry information changed.
How to fix - This account is currently not available

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap