man-pages/man8/faillog.8.html
2021-03-31 01:06:50 +01:00

224 lines
4.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of FAILLOG</TITLE>
</HEAD><BODY>
<H1>FAILLOG</H1>
Section: System Management Commands (8)<BR>Updated: 05/28/2020<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
faillog - display faillog records or set login failure limits
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<DL COMPACT>
<DT id="1">
<B>faillog</B> [<I>options</I>]
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<B>faillog</B>
<DD>displays the contents of the failure log database (/var/log/faillog). It can also set the failure counters and limits. When
<B>faillog</B>
is run without arguments, it only displays the faillog records of the users who had a login failure.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
The options which apply to the
<B>faillog</B>
command are:
<P>
<B>-a</B>, <B>--all</B>
<DL COMPACT><DT id="2"><DD>
Display (or act on) faillog records for all users having an entry in the
faillog
database.
<P>
The range of users can be restricted with the
<B>-u</B>
option.
<P>
In display mode, this is still restricted to existing users but forces the display of the faillog entries even if they are empty.
<P>
With the
<B>-l</B>,
<B>-m</B>,
<B>-r</B>,
<B>-t</B>
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.
</DL>
<P>
<B>-h</B>, <B>--help</B>
<DL COMPACT><DT id="3"><DD>
Display help message and exit.
</DL>
<P>
<B>-l</B>, <B>--lock-secs</B>&nbsp;<I>SEC</I>
<DL COMPACT><DT id="4"><DD>
Lock account for
<I>SEC</I>
seconds after failed login.
<P>
Write access to
/var/log/faillog
is required for this option.
</DL>
<P>
<B>-m</B>, <B>--maximum</B>&nbsp;<I>MAX</I>
<DL COMPACT><DT id="5"><DD>
Set the maximum number of login failures after the account is disabled to
<I>MAX</I>.
<P>
Selecting a
<I>MAX</I>
value of 0 has the effect of not placing a limit on the number of failed logins.
<P>
The maximum failure count should always be 0 for
<I>root</I>
to prevent a denial of services attack against the system.
<P>
Write access to
/var/log/faillog
is required for this option.
</DL>
<P>
<B>-r</B>, <B>--reset</B>
<DL COMPACT><DT id="6"><DD>
Reset the counters of login failures.
<P>
Write access to
/var/log/faillog
is required for this option.
</DL>
<P>
<B>-R</B>, <B>--root</B>&nbsp;<I>CHROOT_DIR</I>
<DL COMPACT><DT id="7"><DD>
Apply changes in the
<I>CHROOT_DIR</I>
directory and use the configuration files from the
<I>CHROOT_DIR</I>
directory.
</DL>
<P>
<B>-t</B>, <B>--time</B>&nbsp;<I>DAYS</I>
<DL COMPACT><DT id="8"><DD>
Display faillog records more recent than
<I>DAYS</I>.
</DL>
<P>
<B>-u</B>, <B>--user</B>&nbsp;<I>LOGIN</I>|<I>RANGE</I>
<DL COMPACT><DT id="9"><DD>
Display faillog record or maintains failure counters and limits (if used with
<B>-l</B>,
<B>-m</B>
or
<B>-r</B>
options) only for the specified user(s).
<P>
The users can be specified by a login name, a numerical user ID, or a
<I>RANGE</I>
of users. This
<I>RANGE</I>
of users can be specified with a min and max values (<I>UID_MIN-UID_MAX</I>), a max value (<I>-UID_MAX</I>), or a min value (<I>UID_MIN-</I>).
</DL>
<P>
When none of the
<B>-l</B>,
<B>-m</B>, or
<B>-r</B>
options are used,
<B>faillog</B>
displays the faillog record of the specified user(s).
<A NAME="lbAF">&nbsp;</A>
<H2>CAVEATS</H2>
<P>
<B>faillog</B>
only prints out users with no successful 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
<B>-u</B>
flag, or print out all users with the
<B>-a</B>
flag.
<A NAME="lbAG">&nbsp;</A>
<H2>FILES</H2>
<P>
/var/log/faillog
<DL COMPACT><DT id="10"><DD>
Failure logging file.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?1+login">login</A></B>(1),
<B><A HREF="/cgi-bin/man/man2html?5+faillog">faillog</A></B>(5).
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="11"><A HREF="#lbAB">NAME</A><DD>
<DT id="12"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="13"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="14"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="15"><A HREF="#lbAF">CAVEATS</A><DD>
<DT id="16"><A HREF="#lbAG">FILES</A><DD>
<DT id="17"><A HREF="#lbAH">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:12 GMT, March 31, 2021
</BODY>
</HTML>