OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / shadow / original / man8 / faillog.8
1 .\"$Id: faillog.8,v 1.10 2001/01/27 02:55:52 kloczek Exp $
2 .\" Copyright 1989 - 1994, Julianne Frances Haugh
3 .\" All rights reserved.
4 .\"
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
7 .\" are met:
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\"    notice, this list of conditions and the following disclaimer.
10 .\" 2. Redistributions in binary form must reproduce the above copyright
11 .\"    notice, this list of conditions and the following disclaimer in the
12 .\"    documentation and/or other materials provided with the distribution.
13 .\" 3. Neither the name of Julianne F. Haugh nor the names of its contributors
14 .\"    may be used to endorse or promote products derived from this software
15 .\"    without specific prior written permission.
16 .\"
17 .\" THIS SOFTWARE IS PROVIDED BY JULIE HAUGH AND CONTRIBUTORS ``AS IS'' AND
18 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20 .\" ARE DISCLAIMED.  IN NO EVENT SHALL JULIE HAUGH OR CONTRIBUTORS BE LIABLE
21 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 .\" SUCH DAMAGE.
28 .\"
29 .\"
30 .TH FAILLOG 8
31 .SH NAME
32 faillog \- examine faillog and set login failure limits
33 .SH SYNOPSIS
34 .TP 8
35 \fBfaillog\fR [\fB-u\fR \fIlogin-name\fR] [\fB-a\fR] [\fB-t\fR \fIdays\fR]
36 [\fB-m\fR \fImax\fR] [\fB-pr\fR] 
37 .SH DESCRIPTION
38 \fBfaillog\fR formats the contents of the failure log,
39 \fI/var/log/faillog\fR, and maintains failure counts and
40 limits.
41 The order of the arguments to \fBfaillog\fR is significant.
42 Each argument is processed immediately in the order given.
43 .PP
44 The \fB-p\fR flag causes failure entries to be printed in UID
45 order.
46 Entering \fB-u \fIlogin-name\fR flag will
47 cause the failure record for \fIlogin-name\fR only to be printed.
48 Entering \fB-t \fIdays\fR will cause only the
49 failures more recent than \fIdays\fR to be printed.
50 The \fB-t\fR flag overrides the use of \fB-u\fR.
51 The \fB-a\fR flag causes all users to be selected.
52 When used with the \fB-p\fR flag, this option selects all users
53 who have ever had a login failure.
54 It is meaningless with the \fB-r\fR flag.
55 .PP
56 The \fB-r\fR flag is used to reset the count of login failures.
57 Write access to \fI/var/log/faillog\fR is required for
58 this option.
59 Entering \fB-u \fIlogin-name\fR will cause only the failure count
60 for \fIlogin-name\fR to be reset.
61 .PP
62 The \fB-m\fR flag is used to set the maximum number of login
63 failures before the account is disabled.
64 Write access to \fI/var/log/faillog\fR is required for this
65 option.
66 Entering \fB-m \fImax\fR will cause all accounts to be disabled
67 after \fImax\fR failed logins occur.
68 This may be modified with \fB-u \fIlogin-name\fR to limit this
69 function to \fIlogin-name\fR only.
70 Selecting a \fImax\fR value of 0 has the effect of not placing
71 a limit on the number of failed logins.
72 The maximum failure count
73 should always be 0 for \fBroot\fR to prevent
74 a denial of services attack against the system.
75 .PP
76 Options may be combined in virtually any fashion.
77 Each \fB-p\fR, \fB-r\fR, and \fB-m\fR option will cause
78 immediate execution using any \fB-u\fR or \fB-t\fR modifier.
79 .SH CAVEATS
80 \fBfaillog\fR only prints out users with no successful login since
81 the last failure.
82 To print out a user who has had a successful login since their last
83 failure, you must explicitly request the user with the \fB-u\fR flag,
84 or print out all users with the \fB-a\fR flag.
85 .PP
86 Some systems may replace /var/log with /var/adm or /usr/adm.
87 .SH FILES
88 /var/log/faillog \- failure logging file
89 .SH SEE ALSO
90 .BR login (1),
91 .BR faillog (5)
92 .SH AUTHOR
93 Julianne Frances Haugh (jockgrrl@ix.netcom.com)