224 lines
5.1 KiB
HTML
224 lines
5.1 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: Команды управления системой (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"> </A>
|
||
<H2>НАЗВАНИЕ</H2>
|
||
|
||
faillog - показывает записи из файла faillog или задаёт предел неудачных попыток входа в систему
|
||
<A NAME="lbAC"> </A>
|
||
<H2>СИНТАКСИС</H2>
|
||
|
||
<DL COMPACT>
|
||
<DT id="1">
|
||
<B>faillog</B> [<I>параметры</I>]
|
||
</DL>
|
||
<A NAME="lbAD"> </A>
|
||
<H2>ОПИСАНИЕ</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"> </A>
|
||
<H2>ПАРАМЕТРЫ</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>
|
||
В режиме вывода это ограничивает вывод списком существующих пользователей, но при этом для них выводятся даже пустые записи faillog.
|
||
<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>
|
||
Показать краткую справку и закончить работу.
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
<B>-l</B>, <B>--lock-secs</B> <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> <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>
|
||
Сбросить счётчик неудачных попыток входа.
|
||
<P>
|
||
Write access to
|
||
/var/log/faillog
|
||
is required for this option.
|
||
</DL>
|
||
|
||
<P>
|
||
|
||
<B>-R</B>, <B>--root</B> <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> <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> <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"> </A>
|
||
<H2>ПРЕДОСТЕРЕЖЕНИЯ</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"> </A>
|
||
<H2>ФАЙЛЫ</H2>
|
||
|
||
<P>
|
||
|
||
/var/log/faillog
|
||
<DL COMPACT><DT id="10"><DD>
|
||
журнал неудавшихся попыток входа в систему
|
||
</DL>
|
||
|
||
<A NAME="lbAH"> </A>
|
||
<H2>СМОТРИТЕ ТАКЖЕ</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"> </A><H2>Index</H2>
|
||
<DL>
|
||
<DT id="11"><A HREF="#lbAB">НАЗВАНИЕ</A><DD>
|
||
<DT id="12"><A HREF="#lbAC">СИНТАКСИС</A><DD>
|
||
<DT id="13"><A HREF="#lbAD">ОПИСАНИЕ</A><DD>
|
||
<DT id="14"><A HREF="#lbAE">ПАРАМЕТРЫ</A><DD>
|
||
<DT id="15"><A HREF="#lbAF">ПРЕДОСТЕРЕЖЕНИЯ</A><DD>
|
||
<DT id="16"><A HREF="#lbAG">ФАЙЛЫ</A><DD>
|
||
<DT id="17"><A HREF="#lbAH">СМОТРИТЕ ТАКЖЕ</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:23 GMT, March 31, 2021
|
||
</BODY>
|
||
</HTML>
|