pam_rhosts.8.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. <?xml version="1.0" encoding='UTF-8'?>
  2. <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd">
  4. <refentry id="pam_rhosts">
  5. <refmeta>
  6. <refentrytitle>pam_rhosts</refentrytitle>
  7. <manvolnum>8</manvolnum>
  8. <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo>
  9. </refmeta>
  10. <refnamediv id="pam_rhosts-name">
  11. <refname>pam_rhosts</refname>
  12. <refpurpose>The rhosts PAM module</refpurpose>
  13. </refnamediv>
  14. <refsynopsisdiv>
  15. <cmdsynopsis id="pam_rhosts-cmdsynopsis">
  16. <command>pam_rhosts.so</command>
  17. </cmdsynopsis>
  18. </refsynopsisdiv>
  19. <refsect1 id="pam_rhosts-description">
  20. <title>DESCRIPTION</title>
  21. <para>
  22. This module performs the standard network authentication for services,
  23. as used by traditional implementations of <command>rlogin</command>
  24. and <command>rsh</command> etc.
  25. </para>
  26. <para>
  27. The authentication mechanism of this module is based on the contents
  28. of two files; <filename>/etc/hosts.equiv</filename> (or
  29. and <filename>~/.rhosts</filename>. Firstly, hosts listed in the
  30. former file are treated as equivalent to the localhost. Secondly,
  31. entries in the user's own copy of the latter file is used to map
  32. "<emphasis>remote-host remote-user</emphasis>" pairs to that user's
  33. account on the current host. Access is granted to the user if their
  34. host is present in <filename>/etc/hosts.equiv</filename> and their
  35. remote account is identical to their local one, or if their remote
  36. account has an entry in their personal configuration file.
  37. </para>
  38. <para>
  39. The module authenticates a remote user (internally specified by the
  40. item <parameter>PAM_RUSER</parameter> connecting from the remote
  41. host (internally specified by the item <command>PAM_RHOST</command>).
  42. Accordingly, for applications to be compatible this authentication
  43. module they must set these items prior to calling
  44. <function>pam_authenticate()</function>. The module is not capable
  45. of independently probing the network connection for such information.
  46. </para>
  47. </refsect1>
  48. <refsect1 id="pam_rhosts-options">
  49. <title>OPTIONS</title>
  50. <variablelist>
  51. <varlistentry>
  52. <term>
  53. <option>debug</option>
  54. </term>
  55. <listitem>
  56. <para>
  57. Print debug information.
  58. </para>
  59. </listitem>
  60. </varlistentry>
  61. <varlistentry>
  62. <term>
  63. <option>silent</option>
  64. </term>
  65. <listitem>
  66. <para>
  67. Don't print informative messages.
  68. </para>
  69. </listitem>
  70. </varlistentry>
  71. <varlistentry>
  72. <term>
  73. <option>superuser=<replaceable>account</replaceable></option>
  74. </term>
  75. <listitem>
  76. <para>
  77. Handle <replaceable>account</replaceable> as root.
  78. </para>
  79. </listitem>
  80. </varlistentry>
  81. </variablelist>
  82. </refsect1>
  83. <refsect1 id="pam_rhosts-types">
  84. <title>MODULE TYPES PROVIDED</title>
  85. <para>
  86. Only the <option>auth</option> module type is provided.
  87. </para>
  88. </refsect1>
  89. <refsect1 id='pam_rhosts-return_values'>
  90. <title>RETURN VALUES</title>
  91. <variablelist>
  92. <varlistentry>
  93. <term>PAM_AUTH_ERR</term>
  94. <listitem>
  95. <para>
  96. The remote host, remote user name or the local user name
  97. couldn't be determined or access was denied by
  98. <filename>.rhosts</filename> file.
  99. </para>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry>
  103. <term>PAM_USER_UNKNOWN</term>
  104. <listitem>
  105. <para>
  106. User is not known to system.
  107. </para>
  108. </listitem>
  109. </varlistentry>
  110. </variablelist>
  111. </refsect1>
  112. <refsect1 id='pam_rhosts-examples'>
  113. <title>EXAMPLES</title>
  114. <para>
  115. To grant a remote user access by <filename>/etc/hosts.equiv</filename>
  116. or <filename>.rhosts</filename> for <command>rsh</command> add the
  117. following lines to <filename>/etc/pam.d/rsh</filename>:
  118. <programlisting>
  119. #%PAM-1.0
  120. #
  121. auth required pam_rhosts.so
  122. auth required pam_nologin.so
  123. auth required pam_env.so
  124. auth required pam_unix.so
  125. </programlisting>
  126. </para>
  127. </refsect1>
  128. <refsect1 id='pam_rhosts-see_also'>
  129. <title>SEE ALSO</title>
  130. <para>
  131. <citerefentry>
  132. <refentrytitle>rootok</refentrytitle><manvolnum>3</manvolnum>
  133. </citerefentry>,
  134. <citerefentry>
  135. <refentrytitle>hosts.equiv</refentrytitle><manvolnum>5</manvolnum>
  136. </citerefentry>,
  137. <citerefentry>
  138. <refentrytitle>rhosts</refentrytitle><manvolnum>5</manvolnum>
  139. </citerefentry>,
  140. <citerefentry>
  141. <refentrytitle>pam.conf</refentrytitle><manvolnum>5</manvolnum>
  142. </citerefentry>,
  143. <citerefentry>
  144. <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum>
  145. </citerefentry>,
  146. <citerefentry>
  147. <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
  148. </citerefentry>
  149. </para>
  150. </refsect1>
  151. <refsect1 id='pam_rhosts-author'>
  152. <title>AUTHOR</title>
  153. <para>
  154. pam_rhosts was written by Thorsten Kukuk &lt;kukuk@thkukuk.de&gt;
  155. </para>
  156. </refsect1>
  157. </refentry>