pam_issue(8) — Linux manual page

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | MODULE TYPES PROVIDED | RETURN VALUES | EXAMPLES | SEE ALSO | AUTHOR | COLOPHON

PAM_ISSUE(8)                Linux-PAM Manual                PAM_ISSUE(8)

NAME         top

       pam_issue - PAM module to add issue file to user prompt

SYNOPSIS         top


       pam_issue.so [noesc] [issue=issue-file-name]

DESCRIPTION         top

       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's (using \x format).

       Recognized escapes:

       \d
           current day

       \l
           name of this tty

       \m
           machine architecture (uname -m)

       \n
           machine's network node hostname (uname -n)

       \o
           domain name of this system

       \r
           release number of operating system (uname -r)

       \t
           current time

       \s
           operating system name (uname -s)

       \u
           number of users currently logged in

       \U
           same as \u except it is suffixed with "user" or "users" (eg.
           "1 user" or "10 users")

       \v
           operating system version and build date (uname -v)

OPTIONS         top

       noesc
           Turns off escape code parsing.

       issue=issue-file-name
           The file to output if not using the default.

MODULE TYPES PROVIDED         top

       Only the auth module type is provided.

RETURN VALUES         top

       PAM_BUF_ERR
           Memory buffer error.

       PAM_IGNORE
           The prompt was already changed.

       PAM_SERVICE_ERR
           A service module error occurred.

       PAM_SUCCESS
           The new prompt was set successfully.

EXAMPLES         top

       Add the following line to /etc/pam.d/login to set the user
       specific issue at login:

                   auth optional pam_issue.so issue=/etc/issue

SEE ALSO         top

       pam.conf(5), pam.d(5), pam(8)

AUTHOR         top

       pam_issue was written by Ben Collins <[email protected]>.

COLOPHON         top

       This page is part of the linux-pam (Pluggable Authentication
       Modules for Linux) project.  Information about the project can be
       found at ⟨http:https://www.linux-pam.org/⟩.  If you have a bug report
       for this manual page, see ⟨//www.linux-pam.org/⟩.  This page was
       obtained from the project's upstream Git repository
       ⟨https://github.com/linux-pam/linux-pam.git⟩ on 2023-12-22.  (At
       that time, the date of the most recent commit that was found in
       the repository was 2023-12-18.)  If you discover any rendering
       problems in this HTML version of the page, or you believe there
       is a better or more up-to-date source for the page, or you have
       corrections or improvements to the information in this COLOPHON
       (which is not part of the original manual page), send a mail to
       [email protected]

Linux-PAM Manual               12/22/2023                   PAM_ISSUE(8)