2007-10-07 17:16:16 +05:30
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2008-10-11 17:14:43 +05:30
|
|
|
<!--
|
2021-12-05 21:05:27 +05:30
|
|
|
SPDX-FileCopyrightText: 1989 - 1994, Julianne Frances Haugh
|
|
|
|
SPDX-FileCopyrightText: 2007 - 2011, Nicolas François
|
|
|
|
SPDX-License-Identifier: BSD-3-Clause
|
2008-10-11 17:14:43 +05:30
|
|
|
-->
|
2011-07-09 01:19:09 +05:30
|
|
|
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!-- SHADOW-CONFIG-HERE -->
|
|
|
|
]>
|
2007-10-07 17:16:16 +05:30
|
|
|
<refentry id='faillog.8'>
|
2007-11-11 05:16:11 +05:30
|
|
|
<!-- $Id$ -->
|
2012-05-25 17:15:21 +05:30
|
|
|
<refentryinfo>
|
|
|
|
<author>
|
|
|
|
<firstname>Julianne Frances</firstname>
|
|
|
|
<surname>Haugh</surname>
|
|
|
|
<contrib>Creation, 1989</contrib>
|
|
|
|
</author>
|
|
|
|
<author>
|
|
|
|
<firstname>Thomas</firstname>
|
|
|
|
<surname>Kłoczko</surname>
|
|
|
|
<email>kloczek@pld.org.pl</email>
|
|
|
|
<contrib>shadow-utils maintainer, 2000 - 2007</contrib>
|
|
|
|
</author>
|
|
|
|
<author>
|
|
|
|
<firstname>Nicolas</firstname>
|
|
|
|
<surname>François</surname>
|
|
|
|
<email>nicolas.francois@centraliens.net</email>
|
|
|
|
<contrib>shadow-utils maintainer, 2007 - now</contrib>
|
|
|
|
</author>
|
|
|
|
</refentryinfo>
|
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>
|
2011-07-09 01:19:09 +05:30
|
|
|
<refmiscinfo class="source">shadow-utils</refmiscinfo>
|
|
|
|
<refmiscinfo class="version">&SHADOW_UTILS_VERSION;</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>
|
2010-03-17 00:45:22 +05:30
|
|
|
<para>
|
|
|
|
The range of users can be restricted with the
|
|
|
|
<option>-u</option> option.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
In display mode, this is still restricted to existing users
|
|
|
|
but forces the display of the faillog entries even if they
|
|
|
|
are empty.
|
|
|
|
</para>
|
|
|
|
<para>
|
|
|
|
With the <option>-l</option>, <option>-m</option>,
|
|
|
|
<option>-r</option>, <option>-t</option> options, the users'
|
|
|
|
records are changed, even if the user does not exist on the
|
|
|
|
system. This is useful to reset records of users that have
|
|
|
|
been deleted or to set a policy in advance for a range of
|
|
|
|
users.
|
|
|
|
</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>
|
2013-08-23 03:24:34 +05:30
|
|
|
<option>-l</option>, <option>--lock-secs</option> <replaceable>SEC</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</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>
|
2013-08-23 03:24:34 +05:30
|
|
|
<option>-m</option>, <option>--maximum</option> <replaceable>MAX</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</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>
|
2011-11-07 00:09:03 +05:30
|
|
|
<varlistentry>
|
|
|
|
<term>
|
2013-08-23 03:24:34 +05:30
|
|
|
<option>-R</option>, <option>--root</option> <replaceable>CHROOT_DIR</replaceable>
|
2011-11-07 00:09:03 +05:30
|
|
|
</term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Apply changes in the <replaceable>CHROOT_DIR</replaceable>
|
|
|
|
directory and use the configuration files from the
|
|
|
|
<replaceable>CHROOT_DIR</replaceable> directory.
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
2007-10-07 17:16:16 +05:30
|
|
|
<varlistentry>
|
2013-08-23 03:24:34 +05:30
|
|
|
<term><option>-t</option>, <option>--time</option> <replaceable>DAYS</replaceable>
|
2007-10-07 17:17:01 +05:30
|
|
|
</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>
|
2013-08-23 03:24:34 +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>
|
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>
|