diff options
Diffstat (limited to '')
-rw-r--r-- | modules/pam_echo/pam_echo.8 | 132 | ||||
-rw-r--r-- | modules/pam_echo/pam_echo.8.xml | 170 |
2 files changed, 302 insertions, 0 deletions
diff --git a/modules/pam_echo/pam_echo.8 b/modules/pam_echo/pam_echo.8 new file mode 100644 index 0000000..ba46e06 --- /dev/null +++ b/modules/pam_echo/pam_echo.8 @@ -0,0 +1,132 @@ +'\" t +.\" Title: pam_echo +.\" 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_ECHO" "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_echo \- PAM module for printing text messages +.SH "SYNOPSIS" +.HP \w'\fBpam_echo\&.so\fR\ 'u +\fBpam_echo\&.so\fR [file=\fI/path/message\fR] +.SH "DESCRIPTION" +.PP +The +\fIpam_echo\fR +PAM module is for printing text messages to inform user about special things\&. Sequences starting with the +\fI%\fR +character are interpreted in the following way: +.PP +\fI%H\fR +.RS 4 +The name of the remote host (PAM_RHOST)\&. +.RE +.PP +\fI%h\fR +.RS 4 +The name of the local host\&. +.RE +.PP +\fI%s\fR +.RS 4 +The service name (PAM_SERVICE)\&. +.RE +.PP +\fI%t\fR +.RS 4 +The name of the controlling terminal (PAM_TTY)\&. +.RE +.PP +\fI%U\fR +.RS 4 +The remote user name (PAM_RUSER)\&. +.RE +.PP +\fI%u\fR +.RS 4 +The local user name (PAM_USER)\&. +.RE +.PP +All other sequences beginning with +\fI%\fR +expands to the characters following the +\fI%\fR +character\&. +.SH "OPTIONS" +.PP +\fBfile=\fR\fB\fI/path/message\fR\fR +.RS 4 +The content of the file +/path/message +will be printed with the PAM conversion function as PAM_TEXT_INFO\&. +.RE +.SH "MODULE TYPES PROVIDED" +.PP +All module types (\fBauth\fR, +\fBaccount\fR, +\fBpassword\fR +and +\fBsession\fR) are provided\&. +.SH "RETURN VALUES" +.PP +PAM_BUF_ERR +.RS 4 +Memory buffer error\&. +.RE +.PP +PAM_SUCCESS +.RS 4 +Message was successful printed\&. +.RE +.PP +PAM_IGNORE +.RS 4 +PAM_SILENT flag was given or message file does not exist, no message printed\&. +.RE +.SH "EXAMPLES" +.PP +For an example of the use of this module, we show how it may be used to print information about good passwords: +.sp +.if n \{\ +.RS 4 +.\} +.nf +password optional pam_echo\&.so file=/usr/share/doc/good\-password\&.txt +password required pam_unix\&.so + +.fi +.if n \{\ +.RE +.\} +.sp +.SH "SEE ALSO" +.PP +\fBpam.conf\fR(8), +\fBpam.d\fR(5), +\fBpam\fR(8) +.SH "AUTHOR" +.PP +Thorsten Kukuk <kukuk@thkukuk\&.de> diff --git a/modules/pam_echo/pam_echo.8.xml b/modules/pam_echo/pam_echo.8.xml new file mode 100644 index 0000000..ef76b02 --- /dev/null +++ b/modules/pam_echo/pam_echo.8.xml @@ -0,0 +1,170 @@ +<?xml version="1.0" encoding="ISO-8859-1"?> +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN" + "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"> + +<refentry id='pam_echo'> + <refmeta> + <refentrytitle>pam_echo</refentrytitle> + <manvolnum>8</manvolnum> + <refmiscinfo class='setdesc'>Linux-PAM Manual</refmiscinfo> + </refmeta> + + <refnamediv id='pam_echo-name'> + <refname>pam_echo</refname> + <refpurpose>PAM module for printing text messages</refpurpose> + </refnamediv> + +<!-- body begins here --> + + <refsynopsisdiv> + <cmdsynopsis id="pam_echo-cmdsynopsis"> + <command>pam_echo.so</command> + <arg choice="opt"> + file=<replaceable>/path/message</replaceable> + </arg> + </cmdsynopsis> + </refsynopsisdiv> + + <refsect1 id='pam_echo-description'> + <title>DESCRIPTION</title> + <para> + The <emphasis>pam_echo</emphasis> PAM module is for printing + text messages to inform user about special things. Sequences + starting with the <emphasis>%</emphasis> character are + interpreted in the following way: + </para> + <variablelist> + <varlistentry> + <term><emphasis>%H</emphasis></term> + <listitem> + <para>The name of the remote host (PAM_RHOST).</para> + </listitem> + </varlistentry> + <varlistentry> + <term><emphasis>%h</emphasis></term> + <listitem> + <para>The name of the local host.</para> + </listitem> + </varlistentry> + <varlistentry> + <term><emphasis>%s</emphasis></term> + <listitem> + <para>The service name (PAM_SERVICE).</para> + </listitem> + </varlistentry> + <varlistentry> + <term><emphasis>%t</emphasis></term> + <listitem> + <para>The name of the controlling terminal (PAM_TTY).</para> + </listitem> + </varlistentry> + <varlistentry> + <term><emphasis>%U</emphasis></term> + <listitem> + <para>The remote user name (PAM_RUSER).</para> + </listitem> + </varlistentry> + <varlistentry> + <term><emphasis>%u</emphasis></term> + <listitem> + <para>The local user name (PAM_USER).</para> + </listitem> + </varlistentry> + </variablelist> + + <para> + All other sequences beginning with <emphasis>%</emphasis> + expands to the characters following the <emphasis>%</emphasis> + character. + </para> + </refsect1> + + <refsect1 id='pam_echo-options'> + <title>OPTIONS</title> + <variablelist> + <varlistentry> + <term> + <option>file=<replaceable>/path/message</replaceable></option> + </term> + <listitem> + <para> + The content of the file <filename>/path/message</filename> + will be printed with the PAM conversion function as PAM_TEXT_INFO. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + + <refsect1 id="pam_echo-types"> + <title>MODULE TYPES PROVIDED</title> + <para> + All module types (<option>auth</option>, <option>account</option>, + <option>password</option> and <option>session</option>) are provided. + + </para> + </refsect1> + + + <refsect1 id="pam_echo-return_values"> + <title>RETURN VALUES</title> + <variablelist> + <varlistentry> + <term>PAM_BUF_ERR</term> + <listitem> + <para> + Memory buffer error. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>PAM_SUCCESS</term> + <listitem> + <para> + Message was successful printed. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term>PAM_IGNORE</term> + <listitem> + <para> + PAM_SILENT flag was given or message file does not + exist, no message printed. + </para> + </listitem> + </varlistentry> + </variablelist> + </refsect1> + + <refsect1 id='pam_echo-examples'> + <title>EXAMPLES</title> + <para> + For an example of the use of this module, we show how it may be + used to print information about good passwords: + <programlisting> +password optional pam_echo.so file=/usr/share/doc/good-password.txt +password required pam_unix.so + </programlisting> + </para> + </refsect1> + + + <refsect1 id='pam_echo-see_also'><title>SEE ALSO</title> + <para> + <citerefentry> + <refentrytitle>pam.conf</refentrytitle><manvolnum>8</manvolnum> + </citerefentry>, + <citerefentry> + <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum> + </citerefentry>, + <citerefentry> + <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum> + </citerefentry></para> + </refsect1> + + <refsect1 id='pam_echo-author'> + <title>AUTHOR</title> + <para>Thorsten Kukuk <kukuk@thkukuk.de></para> + </refsect1> +</refentry> |