pam_ftp.8.xml 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  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_ftp">
  5. <refmeta>
  6. <refentrytitle>pam_ftp</refentrytitle>
  7. <manvolnum>8</manvolnum>
  8. <refmiscinfo class="sectdesc">Linux-PAM Manual</refmiscinfo>
  9. </refmeta>
  10. <refnamediv id="pam_ftp-name">
  11. <refname>pam_ftp</refname>
  12. <refpurpose>PAM module for anonymous access module</refpurpose>
  13. </refnamediv>
  14. <refsynopsisdiv>
  15. <cmdsynopsis id="pam_ftp-cmdsynopsis">
  16. <command>pam_ftp.so</command>
  17. <arg choice="opt">
  18. debug
  19. </arg>
  20. <arg choice="opt">
  21. ignore
  22. </arg>
  23. <arg choice="opt" rep='repeat'>
  24. users=<replaceable>XXX,YYY,</replaceable>
  25. </arg>
  26. </cmdsynopsis>
  27. </refsynopsisdiv>
  28. <refsect1 id="pam_ftp-description">
  29. <title>DESCRIPTION</title>
  30. <para>
  31. pam_ftp is a PAM module which provides a pluggable
  32. anonymous ftp mode of access.
  33. </para>
  34. <para>
  35. This module intercepts the user's name and password. If the name is
  36. <emphasis>ftp</emphasis> or <emphasis>anonymous</emphasis>, the
  37. user's password is broken up at the <emphasis>@</emphasis> delimiter
  38. into a <emphasis>PAM_RUSER</emphasis> and a
  39. <emphasis>PAM_RHOST</emphasis> part; these pam-items being set
  40. accordingly. The username (<emphasis>PAM_USER</emphasis>) is set
  41. to <emphasis>ftp</emphasis>. In this case the module succeeds.
  42. Alternatively, the module sets the <emphasis>PAM_AUTHTOK</emphasis>
  43. item with the entered password and fails.
  44. </para>
  45. <para>
  46. This module is not safe and easily spoofable.
  47. </para>
  48. </refsect1>
  49. <refsect1 id="pam_ftp-options">
  50. <title>OPTIONS</title>
  51. <para>
  52. <variablelist>
  53. <varlistentry>
  54. <term>
  55. <option>debug</option>
  56. </term>
  57. <listitem>
  58. <para>
  59. Print debug information.
  60. </para>
  61. </listitem>
  62. </varlistentry>
  63. <varlistentry>
  64. <term>
  65. <option>ignore</option>
  66. </term>
  67. <listitem>
  68. <para>
  69. Pay no attention to the email address of the user
  70. (if supplied).
  71. </para>
  72. </listitem>
  73. </varlistentry>
  74. <varlistentry>
  75. <term>
  76. <option>ftp=<replaceable>XXX,YYY,...</replaceable></option>
  77. </term>
  78. <listitem>
  79. <para>
  80. Instead of <emphasis>ftp</emphasis> or
  81. <emphasis>anonymous</emphasis>, provide anonymous login
  82. to the comma separated list of users:
  83. <option><replaceable>XXX,YYY,...</replaceable></option>.
  84. Should the applicant enter
  85. one of these usernames the returned username is set to
  86. the first in the list: <emphasis>XXX</emphasis>.
  87. </para>
  88. </listitem>
  89. </varlistentry>
  90. </variablelist>
  91. </para>
  92. </refsect1>
  93. <refsect1 id="pam_ftp-types">
  94. <title>MODULE TYPES PROVIDED</title>
  95. <para>
  96. Only the <option>auth</option> module type is provided.
  97. </para>
  98. </refsect1>
  99. <refsect1 id='pam_ftp-return_values'>
  100. <title>RETURN VALUES</title>
  101. <para>
  102. <variablelist>
  103. <varlistentry>
  104. <term>PAM_SUCCESS</term>
  105. <listitem>
  106. <para>
  107. The authentication was successful.
  108. </para>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry>
  112. <term>PAM_USER_UNKNOWN</term>
  113. <listitem>
  114. <para>
  115. User not known.
  116. </para>
  117. </listitem>
  118. </varlistentry>
  119. </variablelist>
  120. </para>
  121. </refsect1>
  122. <refsect1 id='pam_ftp-examples'>
  123. <title>EXAMPLES</title>
  124. <para>
  125. Add the following line to <filename>/etc/pam.d/ftpd</filename> to
  126. handle ftp style anonymous login:
  127. <programlisting>
  128. #
  129. # ftpd; add ftp-specifics. These lines enable anonymous ftp over
  130. # standard UN*X access (the listfile entry blocks access to
  131. # users listed in /etc/ftpusers)
  132. #
  133. auth sufficient pam_ftp.so
  134. auth required pam_unix.so use_first_pass
  135. auth required pam_listfile.so \
  136. onerr=succeed item=user sense=deny file=/etc/ftpusers
  137. </programlisting>
  138. </para>
  139. </refsect1>
  140. <refsect1 id='pam_ftp-see_also'>
  141. <title>SEE ALSO</title>
  142. <para>
  143. <citerefentry>
  144. <refentrytitle>pam.conf</refentrytitle><manvolnum>5</manvolnum>
  145. </citerefentry>,
  146. <citerefentry>
  147. <refentrytitle>pam.d</refentrytitle><manvolnum>5</manvolnum>
  148. </citerefentry>,
  149. <citerefentry>
  150. <refentrytitle>pam</refentrytitle><manvolnum>8</manvolnum>
  151. </citerefentry>
  152. </para>
  153. </refsect1>
  154. <refsect1 id='pam_ftp-author'>
  155. <title>AUTHOR</title>
  156. <para>
  157. pam_ftp was written by Andrew G. Morgan &lt;morgan@kernel.org&gt;.
  158. </para>
  159. </refsect1>
  160. </refentry>