How to unlock Linux users after being locked

One of the customer's machines tried to log in using the oracle user according to the common password provided, and the account was locked more than a specified number of times. The prompt is as follows:

Account locked due to 6 failed logins

This needs to be unlocked using the root user:
pam_tally2 --user = oracle --reset

[root@jystdrac1 ~]# pam_tally2 --user=oracle --reset
Login           Failures Latest failure     From
oracle              6    

If you forget the actual password, you can use the root user passwd oracle to set a new password:

passwd oracle

Login again successfully.
About the security settings, the corresponding configuration file should be: /etc/pam.d/system-auth.

Guess you like

Origin www.cnblogs.com/jyzhao/p/12753304.html