man-pages/man8/pam_ftp.8.html
2021-03-31 01:06:50 +01:00

190 lines
3.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of PAM_FTP</TITLE>
</HEAD><BODY>
<H1>PAM_FTP</H1>
Section: Linux-PAM Manual (8)<BR>Updated: 05/18/2017<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
pam_ftp - PAM module for anonymous access module
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
<DL COMPACT>
<DT id="1">
<B>pam_<A HREF="ftp://ftp.so">ftp.so</A></B> [debug] [ignore] [users=<I>XXX,YYY,</I>...]
</DL>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<P>
<DD>pam_ftp is a PAM module which provides a pluggable anonymous ftp mode of access.
<P>
This module intercepts the user's name and password. If the name is
<I>ftp</I>
or
<I>anonymous</I>, the user's password is broken up at the
<I>@</I>
delimiter into a
<I>PAM_RUSER</I>
and a
<I>PAM_RHOST</I>
part; these pam-items being set accordingly. The username (<I>PAM_USER</I>) is set to
<I>ftp</I>. In this case the module succeeds. Alternatively, the module sets the
<I>PAM_AUTHTOK</I>
item with the entered password and fails.
<P>
This module is not safe and easily spoofable.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<P>
<P>
<B>debug</B>
<DL COMPACT><DT id="2"><DD>
Print debug information.
</DL>
<P>
<B>ignore</B>
<DL COMPACT><DT id="3"><DD>
Pay no attention to the email address of the user (if supplied).
</DL>
<P>
<B>ftp=</B><B></B><I>XXX,YYY,...</I>
<DL COMPACT><DT id="4"><DD>
Instead of
<I>ftp</I>
or
<I>anonymous</I>, provide anonymous login to the comma separated list of users:
<B></B><I>XXX,YYY,...</I>. Should the applicant enter one of these usernames the returned username is set to the first in the list:
<I>XXX</I>.
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>MODULE TYPES PROVIDED</H2>
<P>
Only the
<B>auth</B>
module type is provided.
<A NAME="lbAG">&nbsp;</A>
<H2>RETURN VALUES</H2>
<P>
<P>
PAM_SUCCESS
<DL COMPACT><DT id="5"><DD>
The authentication was successful.
</DL>
<P>
PAM_USER_UNKNOWN
<DL COMPACT><DT id="6"><DD>
User not known.
</DL>
<A NAME="lbAH">&nbsp;</A>
<H2>EXAMPLES</H2>
<P>
Add the following line to
/etc/pam.d/ftpd
to handle ftp style anonymous login:
<P>
<DL COMPACT><DT id="7"><DD>
<PRE>
#
# ftpd; add ftp-specifics. These lines enable anonymous ftp over
# standard UN*X access (the listfile entry blocks access to
# users listed in /etc/ftpusers)
#
auth sufficient pam_<A HREF="ftp://ftp.so">ftp.so</A>
auth required pam_unix.so use_first_pass
auth required pam_listfile.so \
onerr=succeed item=user sense=deny file=/etc/ftpusers
</PRE>
</DL>
<P>
<A NAME="lbAI">&nbsp;</A>
<H2>SEE ALSO</H2>
<P>
<B><A HREF="/cgi-bin/man/man2html?5+pam.conf">pam.conf</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?5+pam.d">pam.d</A></B>(5),
<B><A HREF="/cgi-bin/man/man2html?7+pam">pam</A></B>(7)
<A NAME="lbAJ">&nbsp;</A>
<H2>AUTHOR</H2>
<P>
pam_ftp was written by Andrew G. Morgan &lt;<A HREF="mailto:morgan@kernel.org">morgan@kernel.org</A>&gt;.
<P>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="8"><A HREF="#lbAB">NAME</A><DD>
<DT id="9"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="10"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="11"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="12"><A HREF="#lbAF">MODULE TYPES PROVIDED</A><DD>
<DT id="13"><A HREF="#lbAG">RETURN VALUES</A><DD>
<DT id="14"><A HREF="#lbAH">EXAMPLES</A><DD>
<DT id="15"><A HREF="#lbAI">SEE ALSO</A><DD>
<DT id="16"><A HREF="#lbAJ">AUTHOR</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:06:14 GMT, March 31, 2021
</BODY>
</HTML>