blob: e88f0b5797609b38ec763cc26a6e94191514ce31 (
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
|
.\" Title: pam_localuser
.\" Author:
.\" Generator: DocBook XSL Stylesheets v1.71.0 <http://docbook.sf.net/>
.\" Date: 12/13/2006
.\" Manual: Linux\-PAM Manual
.\" Source: Linux\-PAM Manual
.\"
.TH "PAM_LOCALUSER" "8" "12/13/2006" "Linux\-PAM Manual" "Linux\-PAM Manual"
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.SH "NAME"
pam_localuser \- require users to be listed in /etc/passwd
.SH "SYNOPSIS"
.HP 17
\fBpam_localuser.so\fR [debug] [file=\fI/path/passwd\fR]
.SH "DESCRIPTION"
.PP
pam_localuser is a PAM module to help implementing site\-wide login policies, where they typically include a subset of the network's users and a few accounts that are local to a particular workstation. Using pam_localuser and pam_wheel or pam_listfile is an effective way to restrict access to either local users and/or a subset of the network's users.
.PP
This could also be implemented using pam_listfile.so and a very short awk script invoked by cron, but it's common enough to have been separated out.
.SH "OPTIONS"
.PP
.PP
\fBdebug\fR
.RS 3n
Print debug information.
.RE
.PP
\fBfile=\fR\fB\fI/path/passwd\fR\fR
.RS 3n
Use a file other than
\fI/etc/passwd\fR.
.RE
.SH "MODULE SERVICES PROVIDED"
.PP
All services (\fBaccount\fR,
\fBauth\fR,
\fBpassword\fR
and
\fBsession\fR) are supported.
.SH "RETURN VALUES"
.PP
.PP
PAM_SUCCESS
.RS 3n
The new localuser was set successfull.
.RE
.PP
PAM_SERVICE_ERR
.RS 3n
No username was given.
.RE
.PP
PAM_USER_UNKNOWN
.RS 3n
User not known.
.RE
.SH "EXAMPLES"
.PP
Add the following line to
\fI/etc/pam.d/su\fR
to allow only local users in group wheel to use su.
.sp
.RS 3n
.nf
account sufficient pam_localuser.so
account required pam_wheel.so
.fi
.RE
.sp
.SH "FILES"
.PP
\fI/etc/passwd\fR
.RS 3n
Local user account information.
.RE
.SH "SEE ALSO"
.PP
\fBpam.conf\fR(5),
\fBpam.d\fR(8),
\fBpam\fR(8)
.SH "AUTHOR"
.PP
pam_localuser was written by Nalin Dahyabhai <nalin@redhat.com>.
|