2007-10-07 17:16:16 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-10-11 17:14:43 +05:30
|
|
|
<!--
|
|
|
|
Copyright (c) 1989 - 1994, Julianne Frances Haugh
|
2009-03-14 04:19:20 +05:30
|
|
|
Copyright (c) 2007 - 2009, Nicolas François
|
2008-10-11 17:14:43 +05:30
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
|
|
modification, are permitted provided that the following conditions
|
|
|
|
are met:
|
|
|
|
1. Redistributions of source code must retain the above copyright
|
|
|
|
notice, this list of conditions and the following disclaimer.
|
|
|
|
2. Redistributions in binary form must reproduce the above copyright
|
|
|
|
notice, this list of conditions and the following disclaimer in the
|
|
|
|
documentation and/or other materials provided with the distribution.
|
|
|
|
3. The name of the copyright holders or contributors may not be used to
|
|
|
|
endorse or promote products derived from this software without
|
|
|
|
specific prior written permission.
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
|
|
|
|
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
-->
|
2007-10-07 17:16:16 +05:30
|
|
|
<refentry id='faillog.8'>
|
2007-11-11 05:16:11 +05:30
|
|
|
<!-- $Id$ -->
|
2007-10-07 17:16:16 +05:30
|
|
|
<refmeta>
|
|
|
|
<refentrytitle>faillog</refentrytitle>
|
|
|
|
<manvolnum>8</manvolnum>
|
2007-10-07 17:17:11 +05:30
|
|
|
<refmiscinfo class="sectdesc">System Management Commands</refmiscinfo>
|
2007-10-07 17:16:16 +05:30
|
|
|
</refmeta>
|
|
|
|
<refnamediv id='name'>
|
|
|
|
<refname>faillog</refname>
|
|
|
|
<refpurpose>display faillog records or set login failure limits</refpurpose>
|
|
|
|
</refnamediv>
|
|
|
|
|
|
|
|
<refsynopsisdiv id='synopsis'>
|
|
|
|
<cmdsynopsis>
|
2007-10-07 17:17:01 +05:30
|
|
|
<command>faillog</command>
|
2007-10-07 17:16:16 +05:30
|
|
|
<arg choice='opt'>
|
2007-10-07 17:17:01 +05:30
|
|
|
<replaceable>options</replaceable>
|
2007-10-07 17:16:16 +05:30
|
|
|
</arg>
|
|
|
|
</cmdsynopsis>
|
|
|
|
</refsynopsisdiv>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='description'>
|
|
|
|
<title>DESCRIPTION</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
2009-05-21 19:34:53 +05:30
|
|
|
<command>faillog</command> displays the contents of the failure log
|
|
|
|
database (<filename>/var/log/faillog</filename>). It can also
|
|
|
|
set the failure counters and limits. When
|
|
|
|
<command>faillog</command> is run without arguments, it only displays the
|
|
|
|
faillog records of the users who had a login failure.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='options'>
|
|
|
|
<title>OPTIONS</title>
|
|
|
|
<para>
|
|
|
|
The options which apply to the <command>faillog</command> command
|
|
|
|
are:
|
|
|
|
</para>
|
|
|
|
<variablelist remap='IP'>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><option>-a</option>, <option>--all</option></term>
|
|
|
|
<listitem>
|
2009-03-14 04:19:20 +05:30
|
|
|
<para>
|
|
|
|
Display (or act on) faillog records for all users having an
|
|
|
|
entry in the <filename>faillog</filename> database.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><option>-h</option>, <option>--help</option></term>
|
|
|
|
<listitem>
|
|
|
|
<para>Display help message and exit.</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-l</option>, <option>--lock-time</option>
|
|
|
|
<replaceable>SEC</replaceable>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2009-05-21 19:34:53 +05:30
|
|
|
Lock account for <replaceable>SEC</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
seconds after failed login.
|
|
|
|
</para>
|
2009-03-14 04:19:20 +05:30
|
|
|
<para>
|
|
|
|
Write access to <filename>/var/log/faillog</filename>
|
|
|
|
is required for this option.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
|
|
|
<option>-m</option>, <option>--maximum</option>
|
|
|
|
<replaceable>MAX</replaceable>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2009-05-21 19:34:53 +05:30
|
|
|
Set the maximum number of login failures after the account is
|
2009-03-14 04:19:20 +05:30
|
|
|
disabled to <replaceable>MAX</replaceable>.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Selecting a
|
2007-10-07 17:17:01 +05:30
|
|
|
<replaceable>MAX</replaceable> value of 0 has the effect of not
|
2009-03-14 04:19:20 +05:30
|
|
|
placing a limit on the number of failed logins.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The maximum
|
2007-10-07 17:17:01 +05:30
|
|
|
failure count should always be 0 for <emphasis>root</emphasis>
|
|
|
|
to prevent a denial of services attack against the system.
|
|
|
|
</para>
|
2009-03-14 04:19:20 +05:30
|
|
|
<para>
|
|
|
|
Write access to <filename>/var/log/faillog</filename>
|
|
|
|
is required for this option.
|
|
|
|
</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><option>-r</option>, <option>--reset</option></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2009-05-21 19:34:53 +05:30
|
|
|
Reset the counters of login failures.
|
2009-03-14 04:19:20 +05:30
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
Write access to <filename>/var/log/faillog</filename>
|
2007-10-07 17:17:33 +05:30
|
|
|
is required for this option.
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><option>-t</option>, <option>--time</option>
|
|
|
|
<replaceable>DAYS</replaceable>
|
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Display faillog records more recent than
|
2009-03-14 04:19:20 +05:30
|
|
|
<replaceable>DAYS</replaceable>.
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term>
|
2009-03-14 04:19:20 +05:30
|
|
|
<option>-u</option>, <option>--user</option>
|
|
|
|
<replaceable>LOGIN</replaceable>|<replaceable>RANGE</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Display faillog record or maintains failure counters and limits
|
|
|
|
(if used with <option>-l</option>, <option>-m</option> or
|
2009-03-14 04:19:20 +05:30
|
|
|
<option>-r</option> options) only for the specified user(s).
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
The users can be specified by a login name, a numerical user
|
|
|
|
ID, or a <replaceable>RANGE</replaceable> of users. This
|
|
|
|
<replaceable>RANGE</replaceable> of users can be specified
|
|
|
|
with a min and max values
|
|
|
|
(<replaceable>UID_MIN-UID_MAX</replaceable>), a max value
|
|
|
|
(<replaceable>-UID_MAX</replaceable>), or a min value
|
|
|
|
(<replaceable>UID_MIN-</replaceable>).
|
2007-10-07 17:17:01 +05:30
|
|
|
</para>
|
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
2009-03-14 04:19:20 +05:30
|
|
|
|
|
|
|
<para>
|
|
|
|
When none of the <option>-l</option>, <option>-m</option>, or
|
|
|
|
<option>-r</option> options are used, <command>faillog</command>
|
|
|
|
displays the faillog record of the specified user(s).
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
NOTE: in display mode, only the records of users which currently
|
|
|
|
exist in the system are displayed. In the other modes (when the
|
|
|
|
<option>-l</option>, <option>-m</option>, or <option>-r</option>
|
|
|
|
options are used), the records of the user, or the range of users,
|
|
|
|
or all the users that may have an entry in the faillog database will
|
|
|
|
be changed. This is useful to reset records of users that have been
|
|
|
|
deleted or set a policy in advance for a range of users.
|
|
|
|
</para>
|
2007-10-07 17:16:16 +05:30
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='caveats'>
|
|
|
|
<title>CAVEATS</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
<command>faillog</command> only prints out users with no successful
|
2007-10-07 17:16:16 +05:30
|
|
|
login since the last failure. To print out a user who has had a
|
|
|
|
successful login since their last failure, you must explicitly request
|
|
|
|
the user with the <option>-u</option> flag, or print out all users
|
|
|
|
with the <option>-a</option> flag.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='files'>
|
|
|
|
<title>FILES</title>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<term><filename>/var/log/faillog</filename></term>
|
|
|
|
<listitem>
|
2007-10-07 17:17:33 +05:30
|
|
|
<para>Failure logging file.</para>
|
2007-10-07 17:17:01 +05:30
|
|
|
</listitem>
|
2007-10-07 17:16:16 +05:30
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect1>
|
2007-10-07 17:17:01 +05:30
|
|
|
|
2007-10-07 17:16:16 +05:30
|
|
|
<refsect1 id='see_also'>
|
|
|
|
<title>SEE ALSO</title>
|
2007-10-07 17:17:01 +05:30
|
|
|
<para>
|
|
|
|
<citerefentry>
|
|
|
|
<refentrytitle>login</refentrytitle><manvolnum>1</manvolnum>
|
2007-10-07 17:16:16 +05:30
|
|
|
</citerefentry>,
|
|
|
|
<citerefentry>
|
2007-10-07 17:17:01 +05:30
|
|
|
<refentrytitle>faillog</refentrytitle><manvolnum>5</manvolnum>
|
|
|
|
</citerefentry>.
|
2007-10-07 17:16:16 +05:30
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
</refentry>
|