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.
You can use following command to unlock the user account.
# faillog -u trev1 -r
Thanks
@Trevor use this : sudo faillock --user trev1 --reset
@Blue_bird it is faillock, isn't it ?
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!!!
Yes, it is faillock.
sorry for the typo, I think there is no such command...!
Red Hat
Learning Community
A collaborative learning environment, enabling open source skill development.