Linux command
faillog 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Display failure
faillog
Show failures for
faillog -u [username]
Set failure limit
faillog -m [5] -u [username]
Reset failure count
faillog -r -u [username]
Set lockout time
faillog -l [600] -u [username]
说明
faillog displays and manages login failure records from /var/log/faillog. It tracks failed login attempts and can enforce account lockouts after reaching a threshold. Administrators use faillog to monitor suspicious login activity, set failure limits before account lockout, and reset counters after legitimate users are locked out. The database persists across reboots. faillog integrates with PAM for automated account locking based on failed authentication attempts.
参数
- -a, --all
- Display all users with failures.
- -u _USER_, --user _USER_
- Specify user to query or modify.
- -m _MAX_, --maximum _MAX_
- Set maximum failures before lockout.
- -r, --reset
- Reset failure count.
- -l _SECONDS_, --lock-time _SECONDS_
- Set lockout duration.
- -t _DAYS_, --time _DAYS_
- Show failures within N days.
- --help
- Display help information.
FAQ
What is the faillog command used for?
faillog displays and manages login failure records from /var/log/faillog. It tracks failed login attempts and can enforce account lockouts after reaching a threshold. Administrators use faillog to monitor suspicious login activity, set failure limits before account lockout, and reset counters after legitimate users are locked out. The database persists across reboots. faillog integrates with PAM for automated account locking based on failed authentication attempts.
How do I run a basic faillog example?
Run `faillog` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -a, --all do in faillog?
Display all users with failures.