1 <?xml version="1.0" encoding="UTF-8"?>
2 <refentry id='faillog.8'>
3 <!-- $Id: faillog.8.xml,v 1.21 2006/05/28 16:17:36 kloczek Exp $ -->
5 <refentrytitle>faillog</refentrytitle>
6 <manvolnum>8</manvolnum>
7 <refmiscinfo class="sectdesc">System Management Commands</refmiscinfo>
10 <refname>faillog</refname>
11 <refpurpose>display faillog records or set login failure limits</refpurpose>
14 <refsynopsisdiv id='synopsis'>
16 <command>faillog</command>
18 <replaceable>options</replaceable>
23 <refsect1 id='description'>
24 <title>DESCRIPTION</title>
26 <command>faillog</command> formats the contents of the failure log
27 from <filename>/var/log/faillog</filename> database. It also can be
28 used for maintains failure counters and limits. Run
29 <command>faillog</command> without arguments display only list of user
30 faillog records who have ever had a login failure.
34 <refsect1 id='options'>
35 <title>OPTIONS</title>
37 The options which apply to the <command>faillog</command> command
40 <variablelist remap='IP'>
42 <term><option>-a</option>, <option>--all</option></term>
44 <para>Display faillog records for all users.</para>
48 <term><option>-h</option>, <option>--help</option></term>
50 <para>Display help message and exit.</para>
55 <option>-l</option>, <option>--lock-time</option>
56 <replaceable>SEC</replaceable>
60 Lock account to <replaceable>SEC</replaceable>
61 seconds after failed login.
67 <option>-m</option>, <option>--maximum</option>
68 <replaceable>MAX</replaceable>
72 Set maximum number of login failures after the account is
73 disabled to <replaceable>MAX</replaceable>. Selecting
74 <replaceable>MAX</replaceable> value of 0 has the effect of not
75 placing a limit on the number of failed logins. The maximum
76 failure count should always be 0 for <emphasis>root</emphasis>
77 to prevent a denial of services attack against the system.
82 <term><option>-r</option>, <option>--reset</option></term>
85 Reset the counters of login failures or one record if used with
86 the <option>-u</option> <replaceable>LOGIN</replaceable>
87 option. Write access to <filename>/var/log/faillog</filename>
88 is required for this option.
93 <term><option>-t</option>, <option>--time</option>
94 <replaceable>DAYS</replaceable>
98 Display faillog records more recent than
99 <replaceable>DAYS</replaceable>. The <option>-t</option>
100 flag overrides the use of <option>-u</option>.
106 <option>-u</option>, <option>--user</option> <replaceable>LOGIN</replaceable>
110 Display faillog record or maintains failure counters and limits
111 (if used with <option>-l</option>, <option>-m</option> or
112 <option>-r</option> options) only for user with
113 <replaceable>LOGIN</replaceable>.
120 <refsect1 id='caveats'>
121 <title>CAVEATS</title>
123 <command>faillog</command> only prints out users with no successful
124 login since the last failure. To print out a user who has had a
125 successful login since their last failure, you must explicitly request
126 the user with the <option>-u</option> flag, or print out all users
127 with the <option>-a</option> flag.
131 <refsect1 id='files'>
135 <term><filename>/var/log/faillog</filename></term>
137 <para>Failure logging file.</para>
143 <refsect1 id='see_also'>
144 <title>SEE ALSO</title>
147 <refentrytitle>login</refentrytitle><manvolnum>1</manvolnum>
150 <refentrytitle>faillog</refentrytitle><manvolnum>5</manvolnum>