Saturday, October 26, 2019

passwords - Linux Redhat account claims locked even after unlocking

The local linux account won't allow the user to login even after unlocking it.


The following command provides the following output:


[userBar@host]$ sudo usermod -U userFoo
[sudo] password for userBar:
[userBar@host]$

and the following command provides the following output:


[userBar@host]$ sudo passwd -u userFoo
[sudo] password for userBar:
Unlocking password for user userFoo.
passwd: Success
[userBar@host]$

And I changed the password to a known value. But when the user attempts to log in (I'm su-ing in, but the same message is seen in a straight ssh):


[userBar@host]$ su userFoo
Account locked due to 34 failed logins
Password:
su: incorrect password

And yet running passwd -S gt2adm doesn't show the account as locked, nor does /etc/shadow show any error.


This started happening after some mounts were added by another admin and it wasn't happening before for this specific user.


Googling around I can't find another way to unlock the account, and it seems like a locked account should show up in either the passwd or shadow file, yet it's not. I've unlocked the account multiple times (with both commands) and have even rebooted the machine once.

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...