Linux command
pam_faillock 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Show failed login attempts
faillock --user [username]
Reset failed count
faillock --user [username] --reset
Show all users' status
faillock
Configure lockout (in pam file)
auth required pam_faillock.so deny=5 unlock_time=900
说明
pam_faillock is a PAM module that denies access after multiple failed authentication attempts. It provides brute-force protection by temporarily locking accounts. The faillock command queries and resets the failure records.
参数
- --user _name_
- Specific user.
- --reset
- Reset failure count.
- --dir _path_
- Tally directory.
FAQ
What is the pam_faillock command used for?
pam_faillock is a PAM module that denies access after multiple failed authentication attempts. It provides brute-force protection by temporarily locking accounts. The faillock command queries and resets the failure records.
How do I run a basic pam_faillock example?
Run `faillock --user [username]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --user _name_ do in pam_faillock?
Specific user.