123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- '\" t
- .\" Title: pam_issue
- .\" Author: [see the "AUTHOR" section]
- .\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
- .\" Date: 09/03/2021
- .\" Manual: Linux-PAM Manual
- .\" Source: Linux-PAM Manual
- .\" Language: English
- .\"
- .TH "PAM_ISSUE" "8" "09/03/2021" "Linux-PAM Manual" "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"
- pam_issue \- PAM module to add issue file to user prompt
- .SH "SYNOPSIS"
- .HP \w'\fBpam_issue\&.so\fR\ 'u
- \fBpam_issue\&.so\fR [noesc] [issue=\fIissue\-file\-name\fR]
- .SH "DESCRIPTION"
- .PP
- pam_issue is a PAM module to prepend an issue file to the username prompt\&. It also by default parses escape codes in the issue file similar to some common getty\*(Aqs (using \ex format)\&.
- .PP
- Recognized escapes:
- .PP
- \fB\ed\fR
- .RS 4
- current day
- .RE
- .PP
- \fB\el\fR
- .RS 4
- name of this tty
- .RE
- .PP
- \fB\em\fR
- .RS 4
- machine architecture (uname \-m)
- .RE
- .PP
- \fB\en\fR
- .RS 4
- machine\*(Aqs network node hostname (uname \-n)
- .RE
- .PP
- \fB\eo\fR
- .RS 4
- domain name of this system
- .RE
- .PP
- \fB\er\fR
- .RS 4
- release number of operating system (uname \-r)
- .RE
- .PP
- \fB\et\fR
- .RS 4
- current time
- .RE
- .PP
- \fB\es\fR
- .RS 4
- operating system name (uname \-s)
- .RE
- .PP
- \fB\eu\fR
- .RS 4
- number of users currently logged in
- .RE
- .PP
- \fB\eU\fR
- .RS 4
- same as \eu except it is suffixed with "user" or "users" (eg\&. "1 user" or "10 users")
- .RE
- .PP
- \fB\ev\fR
- .RS 4
- operating system version and build date (uname \-v)
- .RE
- .SH "OPTIONS"
- .PP
- .PP
- \fBnoesc\fR
- .RS 4
- Turns off escape code parsing\&.
- .RE
- .PP
- \fBissue=\fR\fB\fIissue\-file\-name\fR\fR
- .RS 4
- The file to output if not using the default\&.
- .RE
- .SH "MODULE TYPES PROVIDED"
- .PP
- Only the
- \fBauth\fR
- module type is provided\&.
- .SH "RETURN VALUES"
- .PP
- .PP
- PAM_BUF_ERR
- .RS 4
- Memory buffer error\&.
- .RE
- .PP
- PAM_IGNORE
- .RS 4
- The prompt was already changed\&.
- .RE
- .PP
- PAM_SERVICE_ERR
- .RS 4
- A service module error occurred\&.
- .RE
- .PP
- PAM_SUCCESS
- .RS 4
- The new prompt was set successfully\&.
- .RE
- .SH "EXAMPLES"
- .PP
- Add the following line to
- /etc/pam\&.d/login
- to set the user specific issue at login:
- .sp
- .if n \{\
- .RS 4
- .\}
- .nf
- auth optional pam_issue\&.so issue=/etc/issue
-
- .fi
- .if n \{\
- .RE
- .\}
- .sp
- .SH "SEE ALSO"
- .PP
- \fBpam.conf\fR(5),
- \fBpam.d\fR(5),
- \fBpam\fR(8)
- .SH "AUTHOR"
- .PP
- pam_issue was written by Ben Collins <bcollins@debian\&.org>\&.
|