如果尝试失败,红帽企业Linux服务器版本5.7上如何locking用户帐户
在PAMauthentication设置中使用pam_tally模块。 根据需要插入相关的/etc/pam.d/*configuration文件。
/etc/pam.d/*
样品:
auth required pam_tally.so deny=10 unlock_time=60 per_user
10次失败的login会产生1分钟的locking。