← 返回命令列表

Linux command

faillock 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

faillock

Reset

faillock --reset

Example

sudo faillock

Example

sudo faillock --user [user]

Example

sudo faillock --user [user] --reset

说明

faillock displays and modifies authentication failure record files. Part of the PAM pam_faillock module, it tracks failed login attempts and can lock out accounts after too many failures. Used for security monitoring and account lockout management.

参数

--user _user_
Operate on specific user
--reset
Reset failure records
--dir _dir_
Use alternate tally directory

FAQ

What is the faillock command used for?

faillock displays and modifies authentication failure record files. Part of the PAM pam_faillock module, it tracks failed login attempts and can lock out accounts after too many failures. Used for security monitoring and account lockout management.

How do I run a basic faillock example?

Run `faillock` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --user _user_ do in faillock?

Operate on specific user