| 1 |
'\" t |
| 2 |
.\" Title: pam_deny |
| 3 |
.\" Author: [see the "AUTHOR" section] |
| 4 |
.\" Generator: DocBook XSL Stylesheets v1.79.2 <http://docbook.sf.net/> |
| 5 |
.\" Date: 06/29/2025 |
| 6 |
.\" Manual: Linux-PAM Manual |
| 7 |
.\" Source: Linux-PAM |
| 8 |
.\" Language: English |
| 9 |
.\" |
| 10 |
.TH "PAM_DENY" "8" "06/29/2025" "Linux\-PAM" "Linux\-PAM Manual" |
| 11 |
.\" ----------------------------------------------------------------- |
| 12 |
.\" * Define some portability stuff |
| 13 |
.\" ----------------------------------------------------------------- |
| 14 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 15 |
.\" http://bugs.debian.org/507673 |
| 16 |
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html |
| 17 |
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 18 |
.ie \n(.g .ds Aq \(aq |
| 19 |
.el .ds Aq ' |
| 20 |
.\" ----------------------------------------------------------------- |
| 21 |
.\" * set default formatting |
| 22 |
.\" ----------------------------------------------------------------- |
| 23 |
.\" disable hyphenation |
| 24 |
.nh |
| 25 |
.\" disable justification (adjust text to left margin only) |
| 26 |
.ad l |
| 27 |
.\" ----------------------------------------------------------------- |
| 28 |
.\" * MAIN CONTENT STARTS HERE * |
| 29 |
.\" ----------------------------------------------------------------- |
| 30 |
.SH "NAME" |
| 31 |
pam_deny \- The locking\-out PAM module |
| 32 |
.SH "SYNOPSIS" |
| 33 |
.HP \w'\fBpam_deny\&.so\fR\ 'u |
| 34 |
\fBpam_deny\&.so\fR |
| 35 |
.SH "DESCRIPTION" |
| 36 |
.PP |
| 37 |
This module can be used to deny access\&. It always indicates a failure to the application through the PAM framework\&. It might be suitable for using for default (the |
| 38 |
\fIOTHER\fR) entries\&. |
| 39 |
.SH "OPTIONS" |
| 40 |
.PP |
| 41 |
This module does not recognise any options\&. |
| 42 |
.SH "MODULE TYPES PROVIDED" |
| 43 |
.PP |
| 44 |
All module types (\fBaccount\fR, |
| 45 |
\fBauth\fR, |
| 46 |
\fBpassword\fR |
| 47 |
and |
| 48 |
\fBsession\fR) are provided\&. |
| 49 |
.SH "RETURN VALUES" |
| 50 |
.PP |
| 51 |
.PP |
| 52 |
PAM_AUTH_ERR |
| 53 |
.RS 4 |
| 54 |
This is returned by the account and auth services\&. |
| 55 |
.RE |
| 56 |
.PP |
| 57 |
PAM_CRED_ERR |
| 58 |
.RS 4 |
| 59 |
This is returned by the setcred function\&. |
| 60 |
.RE |
| 61 |
.PP |
| 62 |
PAM_AUTHTOK_ERR |
| 63 |
.RS 4 |
| 64 |
This is returned by the password service\&. |
| 65 |
.RE |
| 66 |
.PP |
| 67 |
PAM_SESSION_ERR |
| 68 |
.RS 4 |
| 69 |
This is returned by the session service\&. |
| 70 |
.RE |
| 71 |
.SH "EXAMPLES" |
| 72 |
.sp |
| 73 |
.if n \{\ |
| 74 |
.RS 4 |
| 75 |
.\} |
| 76 |
.nf |
| 77 |
#%PAM\-1\&.0 |
| 78 |
# |
| 79 |
# If we don\*(Aqt have config entries for a service, the |
| 80 |
# OTHER entries are used\&. To be secure, warn and deny |
| 81 |
# access to everything\&. |
| 82 |
other auth required pam_warn\&.so |
| 83 |
other auth required pam_deny\&.so |
| 84 |
other account required pam_warn\&.so |
| 85 |
other account required pam_deny\&.so |
| 86 |
other password required pam_warn\&.so |
| 87 |
other password required pam_deny\&.so |
| 88 |
other session required pam_warn\&.so |
| 89 |
other session required pam_deny\&.so |
| 90 |
|
| 91 |
.fi |
| 92 |
.if n \{\ |
| 93 |
.RE |
| 94 |
.\} |
| 95 |
.SH "SEE ALSO" |
| 96 |
.PP |
| 97 |
\fBpam.conf\fR(5), |
| 98 |
\fBpam.d\fR(5), |
| 99 |
\fBpam\fR(7) |
| 100 |
.SH "AUTHOR" |
| 101 |
.PP |
| 102 |
pam_deny was written by Andrew G\&. Morgan <morgan@kernel\&.org> |