[Trouble shooting]Account locked due to 50 failed logins

test_user may be locked for some cases.

[Symptom]

controller-0:~$ id

uid=1000(wrsroot) gid=116(wrs)groups=116(wrs),0(root),345(wrs_protected)

controller-0:~$ su - test_user

Account locked due to 50 failed logins

Password:

su: Authentication failure

controller-0:~$ su - test_user

Account locked due to 57 failed logins

Password:

su: Authentication failure

controller-0:~$ su - test_user

Account locked due to 58 failed logins

[solution]

https://superuser.com/questions/589211/cant-unlock-linux-user-account

controller-0:~$ sudo pam_tally2--user=test_user --reset

Password:

Login          Failures Latest failure     From

test_user         68    12/22/17 02:19:51  135.251.123.24

controller-0:~$ su - test_user

Password:

controller-0:~$

controller-0:~$

controller-0:~$ id

uid=10005(test_user) gid=100(users)groups=100(users)

你可能感兴趣的:(Linux)