FAILLOCK.CONF(5)
๐ FAILLOCK.CONF(5) ๐
okay bestie, so this is the faillock.conf manual page, from the Linux-PAM Manual โ aka the glow-up guide for pam_faillock configuration. sit down, grab a boba, we're doing this ๐งโจ
๐ธ NAME ๐ธ
faillock.conf โ the config file for pam_faillock ๐
โจ DESCRIPTION โจ
so faillock.conf is literally the main character of "how do we lock a user out after they keep fumbling their password" ๐
it gives you a whole way to configure the default settings for locking someone's account after multiple failed authentication attempts. the pam_faillock module reads this file, and ngl, this is the preferred method โ like, way better than configuring pam_faillock directly. periodt.
the file format is giving simplicity, honestly. it's just name = value, super simple, and you can drop comments in there starting with the # character. and the whitespace? it does NOT matter โ whitespace at the beginning of the line, at the end of the line, and around the = sign is all ignored. she's chill like that ๐ฆ
๐ OPTIONS ๐
dir=/path/to/tally-directoryโ the directory where the user files holding the failure records live. default is/var/run/faillock. ๐๏ธ
note: on systems configured with the directory /var/run/faillock mounted on virtual memory, these files will disappear after reboot. yes bestie, they vanish. poof. ๐
auditโ will log the user name into the system log if the user is not found. ๐silentโ don't print informative messages to the user. but wait โ please note that when this option is not used, there will be a difference in the authentication behavior for users which exist on the system versus non-existing users. so yeah, that's a whole thing ๐no_log_infoโ don't log informative messages viasyslog(3). ๐คซlocal_users_onlyโ only track failed user authentications attempts for local users in/etc/passwd, and ignore centralized (AD, IdM, LDAP, etc.) users. thefaillock(8)command will also no longer track user failed authentication attempts. enabling this option will prevent a double-lockout scenario where a user is locked out locally and in the centralized mechanism. no double trouble, we love that for you ๐ซถnodelayโ don't enforce a delay after authentication failures. bye latency ๐deny=nโ deny access if the number of consecutive authentication failures for this user during the recent interval exceeds n. default is3. three strikes, bestie โพfail_interval=nโ the length of the interval during which the consecutive authentication failures must happen for the user account lock out is n seconds. default is900(that's 15 minutes, we did the math for you ๐งฎ).unlock_time=nโ the access will be re-enabled after n seconds after the lock out. the value0has the same meaning as the valueneverโ the access will not be re-enabled without resetting the faillock entries by thefaillock(8)command. default is600(10 minutes, cutie โฐ).
note that the default directory thatpam_faillockuses is usually cleared on system boot, so the access will be also re-enabled after system reboot. if that is undesirable, a different tally directory must be set with thediroption. ๐
also note that it is usually undesirable to permanently lock out users, as they can become easily a target of denial of service attack unless the usernames are random and kept secret to potential attackers. so like, don't do that fr fr ๐ญ
even_deny_rootโ root account can become locked as well as regular accounts. nobody is safe, not even root ๐root_unlock_time=nโ this option implies theeven_deny_rootoption. allow access after n seconds to the root account after the account is locked. in case the option is not specified, the value is the same as of theunlock_timeoption. โจadmin_group=nameโ if a group name is specified with this option, members of the group will be handled by this module the same as the root account (the optionseven_deny_rootandroot_unlock_timewill apply to them). by default the option is not set. ๐
๐ EXAMPLES ๐
here's the /etc/security/faillock.conf file example, chef's kiss:
deny=4
unlock_time=1200
silent
๐ FILES ๐
/etc/security/faillock.confโ the config file for custom options ๐
๐ฆ SEE ALSO ๐ฆ
faillock(8), pam_faillock(8), pam.conf(5), pam.d(5), pam(8) โ go read these too, they're all in the friend group ๐
โญ AUTHOR โญ
pam_faillock was written by Tomas Mraz. the support for faillock.conf was written by Brian Ward. absolute icons, we stan ๐๐
and that's the whole page, bestie!! this came from Linux-PAM, dated 09/27/2026 โ love that for us. now go configure your faillock responsibly, mwah ๐๐ธ
๐ฆ where this page comes from
- arch rolling: pam 1.7.3-1 ยท GPL-2.0-only
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms