1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
4 <refentry id='faillog.8'>
5 <!-- $Id: faillog.8.xml,v 1.16 2005/10/01 15:01:45 kloczek Exp $ -->
7 <refentrytitle>faillog</refentrytitle>
8 <manvolnum>8</manvolnum>
10 <refnamediv id='name'>
11 <refname>faillog</refname>
12 <refpurpose>display faillog records or set login failure limits</refpurpose>
15 <refsynopsisdiv id='synopsis'>
17 <command>faillog</command>
19 <replaceable>options</replaceable>
24 <refsect1 id='description'>
25 <title>DESCRIPTION</title>
27 <command>faillog</command> formats the contents of the failure log
28 from <filename>/var/log/faillog</filename> database. It also can be
29 used for maintains failure counters and limits. Run
30 <command>faillog</command> without arguments display only list of user
31 faillog records who have ever had a login failure.
35 <refsect1 id='options'>
36 <title>OPTIONS</title>
38 The options which apply to the <command>faillog</command> command
41 <variablelist remap='IP'>
43 <term><option>-a</option>, <option>--all</option></term>
45 <para>Display faillog records for all users.</para>
49 <term><option>-h</option>, <option>--help</option></term>
51 <para>Display help message and exit.</para>
56 <option>-l</option>, <option>--lock-time</option>
57 <replaceable>SEC</replaceable>
61 Lock account to <replaceable>SEC</replaceable>
62 seconds after failed login.
68 <option>-m</option>, <option>--maximum</option>
69 <replaceable>MAX</replaceable>
73 Set maximum number of login failures after the account is
74 disabled to <replaceable>MAX</replaceable>. Selecting
75 <replaceable>MAX</replaceable> value of 0 has the effect of not
76 placing a limit on the number of failed logins. The maximum
77 failure count should always be 0 for <emphasis>root</emphasis>
78 to prevent a denial of services attack against the system.
83 <term><option>-r</option>, <option>--reset</option></term>
86 Reset the counters of login failures or one record if used with
87 the -u <replaceable>LOGIN</replaceable> option. Write access to
88 <filename>/var/log/faillog</filename> is required for this
94 <term><option>-t</option>, <option>--time</option>
95 <replaceable>DAYS</replaceable>
99 Display faillog records more recent than
100 <replaceable>DAYS</replaceable>. The <option>-t</option>
101 flag overrides the use of <option>-u</option>.
107 <option>-u</option>, <option>--user</option> <replaceable>LOGIN</replaceable>
111 Display faillog record or maintains failure counters and limits
112 (if used with <option>-l</option>, <option>-m</option> or
113 <option>-r</option> options) only for user with
114 <replaceable>LOGIN</replaceable>.
121 <refsect1 id='caveats'>
122 <title>CAVEATS</title>
124 <command>faillog</command> only prints out users with no successful
125 login since the last failure. To print out a user who has had a
126 successful login since their last failure, you must explicitly request
127 the user with the <option>-u</option> flag, or print out all users
128 with the <option>-a</option> flag.
132 <refsect1 id='files'>
136 <term><filename>/var/log/faillog</filename></term>
138 <para>failure logging file</para>
144 <refsect1 id='see_also'>
145 <title>SEE ALSO</title>
148 <refentrytitle>login</refentrytitle><manvolnum>1</manvolnum>
151 <refentrytitle>faillog</refentrytitle><manvolnum>5</manvolnum>
156 <refsect1 id='author'>
157 <title>AUTHOR</title>
158 <para>Julianne Frances Haugh (jockgrrl@ix.netcom.com)</para>