Tag: shadow

Check if user account is locked in Linux

If you ever needed to know if an account is locked in CentOS Linux, there are a few commands to find those answers. Password Lock a password using passwd. [root@centos~]# passwd -l testuser Locking password for user testuser. passwd: Success Additional confirmation that the password is locked.  The double !! indicates that the password is locked.  Note that this user does…

Read More »