cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Commander Commander
Commander
  • 759 Views

Unlock a locked user account

Got a user account that has been locked becuase the user had an excessive number of failed login attempts.  What's my command to unlock this account?  The username is trev1.

 

 

Trevor "Red Hat Evangelist" Chandler
4 Replies
Blue_bird
Starfighter Starfighter
Starfighter
  • 730 Views

You can use following command to unlock the user account.

 # faillog -u trev1 -r

Thanks

Chetan_Tiwary_
Community Manager
Community Manager
  • 694 Views

@Trevor use this : sudo faillock --user trev1 --reset

@Blue_bird it is faillock,  isn't it ?

Trevor
Commander Commander
Commander
  • 676 Views

Yeah Chetan, I'm going to have to go with your command, faillock.  The primary reason is because I can't locate a binary named faillog - not in RHEL 9.4, anyway.  

There is, however, a file named faillog, in the /usr/share/bash-completion/completions directory. It's part of an RPM package named bash-completion. It's an ASCII file, that is essentially a shell script.  Didn't investigate it to see what it actually does.

Anyway, faillock is the guy that's going to unlock this locketd account.  Thanks for the complete command syntax!!!

Trevor "Red Hat Evangelist" Chandler
0 Kudos
Blue_bird
Starfighter Starfighter
Starfighter
  • 659 Views

Yes, it is faillock.

sorry for the typo, I think there is no such command...!

0 Kudos
Join the discussion
You must log in to join this conversation.