summaryrefslogtreecommitdiff
path: root/modules/pam_pwhistory/pwhistory.conf.5
blob: ae57798fc537973d4f61dfd44293de9206f8bd02 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
'\" t
.\"     Title: pwhistory.conf
.\"    Author: [see the "AUTHOR" section]
.\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/>
.\"      Date: 05/07/2023
.\"    Manual: Linux-PAM Manual
.\"    Source: Linux-PAM
.\"  Language: English
.\"
.TH "PWHISTORY\&.CONF" "5" "05/07/2023" "Linux\-PAM" "Linux\-PAM Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
pwhistory.conf \- pam_pwhistory configuration file
.SH "DESCRIPTION"
.PP
\fBpwhistory\&.conf\fR
provides a way to configure the default settings for saving the last passwords for each user\&. This file is read by the
\fIpam_pwhistory\fR
module and is the preferred method over configuring
\fIpam_pwhistory\fR
directly\&.
.PP
The file has a very simple
\fIname = value\fR
format with possible comments starting with
\fI#\fR
character\&. The whitespace at the beginning of line, end of line, and around the
\fI=\fR
sign is ignored\&.
.SH "OPTIONS"
.PP
debug
.RS 4
Turns on debugging via
\fBsyslog\fR(3)\&.
.RE
.PP
enforce_for_root
.RS 4
If this option is set, the check is enforced for root, too\&.
.RE
.PP
remember=N
.RS 4
The last
\fIN\fR
passwords for each user are saved\&. The default is
\fI10\fR\&. Value of
\fI0\fR
makes the module to keep the existing contents of the
opasswd
file unchanged\&.
.RE
.PP
retry=N
.RS 4
Prompt user at most
\fIN\fR
times before returning with error\&. The default is 1\&.
.RE
.PP
file=/path/filename
.RS 4
Store password history in file
\fI/path/filename\fR
rather than the default location\&. The default location is
/etc/security/opasswd\&.
.RE
.SH "EXAMPLES"
.PP
/etc/security/pwhistory\&.conf file example:
.sp
.if n \{\
.RS 4
.\}
.nf
debug
remember=5
file=/tmp/opasswd
    
.fi
.if n \{\
.RE
.\}
.SH "FILES"
.PP
/etc/security/pwhistory\&.conf
.RS 4
the config file for custom options
.RE
.SH "SEE ALSO"
.PP
\fBpwhistory\fR(8),
\fBpam_pwhistory\fR(8),
\fBpam.conf\fR(5),
\fBpam.d\fR(5),
\fBpam\fR(8)
.SH "AUTHOR"
.PP
pam_pwhistory was written by Thorsten Kukuk\&. The support for pwhistory\&.conf was written by Iker Pedrosa\&.