pam_echo.8.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
  4. <refentry id='pam_echo'>
  5. <refmeta>
  6. <refentrytitle>pam_echo</refentrytitle>
  7. <manvolnum>8</manvolnum>
  8. <refmiscinfo class='setdesc'>Linux-PAM Manual</refmiscinfo>
  9. </refmeta>
  10. <refnamediv id='pam_echo-name'>
  11. <refname>pam_echo</refname>
  12. <refpurpose>PAM module for printing text messages</refpurpose>
  13. </refnamediv>
  14. <!-- body begins here -->
  15. <refsynopsisdiv>
  16. <cmdsynopsis id="pam_echo-cmdsynopsis">
  17. <command>pam_echo.so</command>
  18. <arg choice="opt">
  19. file=<replaceable>/path/message</replaceable>
  20. </arg>
  21. </cmdsynopsis>
  22. </refsynopsisdiv>
  23. <refsect1 id='pam_echo-description'>
  24. <title>DESCRIPTION</title>
  25. <para>
  26. The <emphasis>pam_echo</emphasis> PAM module is for printing
  27. text messages to inform user about special things. Sequences
  28. starting with the <emphasis>%</emphasis> character are
  29. interpreted in the following way:
  30. </para>
  31. <variablelist>
  32. <varlistentry>
  33. <term><emphasis>%H</emphasis></term>
  34. <listitem>
  35. <para>The name of the remote host (PAM_RHOST).</para>
  36. </listitem>
  37. </varlistentry>
  38. <varlistentry>
  39. <term><emphasis>%h</emphasis></term>
  40. <listitem>
  41. <para>The name of the local host.</para>
  42. </listitem>
  43. </varlistentry>
  44. <varlistentry>
  45. <term><emphasis>%s</emphasis></term>
  46. <listitem>
  47. <para>The service name (PAM_SERVICE).</para>
  48. </listitem>
  49. </varlistentry>
  50. <varlistentry>
  51. <term><emphasis>%t</emphasis></term>
  52. <listitem>
  53. <para>The name of the controlling terminal (PAM_TTY).</para>
  54. </listitem>
  55. </varlistentry>
  56. <varlistentry>
  57. <term><emphasis>%U</emphasis></term>
  58. <listitem>
  59. <para>The remote user name (PAM_RUSER).</para>
  60. </listitem>
  61. </varlistentry>
  62. <varlistentry>
  63. <term><emphasis>%u</emphasis></term>
  64. <listitem>
  65. <para>The local user name (PAM_USER).</para>
  66. </listitem>
  67. </varlistentry>
  68. </variablelist>
  69. <para>
  70. All other sequences beginning with <emphasis>%</emphasis>
  71. expands to the characters following the <emphasis>%</emphasis>
  72. character.
  73. </para>
  74. </refsect1>
  75. <refsect1 id='pam_echo-options'>
  76. <title>OPTIONS</title>
  77. <variablelist>
  78. <varlistentry>
  79. <term>
  80. <option>file=<replaceable>/path/message</replaceable></option>
  81. </term>
  82. <listitem>
  83. <para>
  84. The content of the file <filename>/path/message</filename>
  85. will be printed with the PAM conversion function as PAM_TEXT_INFO.
  86. </para>
  87. </listitem>
  88. </varlistentry>
  89. </variablelist>
  90. </refsect1>
  91. <refsect1 id="pam_echo-types">
  92. <title>MODULE TYPES PROVIDED</title>
  93. <para>
  94. All module types (<option>auth</option>, <option>account</option>,
  95. <option>password</option> and <option>session</option>) are provided.
  96. </para>
  97. </refsect1>
  98. <refsect1 id="pam_echo-return_values">
  99. <title>RETURN VALUES</title>
  100. <variablelist>
  101. <varlistentry>
  102. <term>PAM_BUF_ERR</term>
  103. <listitem>
  104. <para>
  105. Memory buffer error.
  106. </para>
  107. </listitem>
  108. </varlistentry>
  109. <varlistentry>
  110. <term>PAM_SUCCESS</term>
  111. <listitem>
  112. <para>
  113. Message was successful printed.
  114. </para>
  115. </listitem>
  116. </varlistentry>
  117. <varlistentry>
  118. <term>PAM_IGNORE</term>
  119. <listitem>
  120. <para>
  121. PAM_SILENT flag was given or message file does not
  122. exist, no message printed.
  123. </para>
  124. </listitem>
  125. </varlistentry>
  126. </variablelist>
  127. </refsect1>
  128. <refsect1 id='pam_echo-examples'>
  129. <title>EXAMPLES</title>
  130. <para>
  131. For an example of the use of this module, we show how it may be
  132. used to print information about good passwords:
  133. <programlisting>
  134. password optional pam_echo.so file=/usr/share/doc/good-password.txt
  135. password required pam_unix.so
  136. </programlisting>
  137. </para>
  138. </refsect1>
  139. <refsect1 id='pam_echo-see_also'><title>SEE ALSO</title>
  140. <para>
  141. <citerefentry>
  142. <refentrytitle>pam.conf</refentrytitle><manvolnum>8</manvolnum>
  143. </citerefentry>,
  144. <citerefentry>
  145. <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum>
  146. </citerefentry>,
  147. <citerefentry>
  148. <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
  149. </citerefentry></para>
  150. </refsect1>
  151. <refsect1 id='pam_echo-author'>
  152. <title>AUTHOR</title>
  153. <para>Thorsten Kukuk &lt;kukuk@thkukuk.de&gt;</para>
  154. </refsect1>
  155. </refentry>