Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to unlock an ordinary CentOS user after being locked

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Because of the security requirements of the online server, some security measures have been taken, including that the user's password will be locked if the number of errors is exceeded.

Last week, because the expiration date of the average user has expired, the password needs to be updated, but after changing the password, I can no longer log in.

Similar situations have been encountered before, where input errors such as more than 3 times may be locked for a period of time, such as more than ten minutes. However, it is still not possible to log in again the next day. Several days later, the user was still locked out.

This week, I found an article on the Internet and found a command, which finally solved the problem of user locking.

[root@iZ2325ncZ] # pam_tally2-r-u binqibu

Reference document: the method of locking user login and forbidding login after N login failures under https://www.jb51.net/article/132827.htm--Centos7

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 302

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report