Tagged vsftpd.xml

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@4352 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Manuel Canales Esparcia 2005-05-18 17:58:54 +00:00
parent 99ef1fc0d4
commit f8ff412591

View File

@ -13,151 +13,193 @@
]>
<sect1 id="vsftpd" xreflabel="vsFTPD-&vsftpd-version;">
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<?dbhtml filename="vsftpd.html"?>
<title><application>vs<acronym>FTP</acronym>D</application>-&vsftpd-version;
</title>
<?dbhtml filename="vsftpd.html"?>
<sect2>
<title>Introduction to
<application>vs<acronym>FTP</acronym>D</application></title>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<para>The <application>vs<acronym>FTP</acronym>D</application> package
contains a very secure and very small <acronym>FTP</acronym> daemon. This is
useful for serving files over a network.</para>
<title>vsFTPD-&vsftpd-version;</title>
<sect3><title>Package information</title>
<itemizedlist spacing='compact'>
<listitem><para>Download (HTTP):
<ulink url="&vsftpd-download-http;"/></para></listitem>
<listitem><para>Download (FTP):
<ulink url="&vsftpd-download-ftp;"/></para></listitem>
<listitem><para>Download MD5 sum: &vsftpd-md5sum;</para></listitem>
<listitem><para>Download size: &vsftpd-size;</para></listitem>
<listitem><para>Estimated disk space required:
&vsftpd-buildsize;</para></listitem>
<listitem><para>Estimated build time:
&vsftpd-time;</para></listitem></itemizedlist>
</sect3>
<indexterm zone="vsftpd">
<primary sortas="a-vsFTPD">vsFTPD</primary>
</indexterm>
<sect3><title><application>vsFTPD</application> dependencies</title>
<sect4><title>Optional</title>
<para><xref linkend="Linux_PAM"/>,
<xref linkend="openssl"/>, and
<xref linkend="tcpwrappers"/></para>
</sect4>
</sect3>
<sect2>
<title>Introduction to vsFTPD</title>
</sect2>
<para>The <application>vsFTPD</application> package contains a very
secure and very small FTP daemon. This is useful for serving files
over a network.</para>
<sect2>
<title>Installation of <application>vsFTPD</application></title>
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>Download (HTTP): <ulink url="&vsftpd-download-http;"/></para>
</listitem>
<listitem>
<para>Download (FTP): <ulink url="&vsftpd-download-ftp;"/></para>
</listitem>
<listitem>
<para>Download MD5 sum: &vsftpd-md5sum;</para>
</listitem>
<listitem>
<para>Download size: &vsftpd-size;</para>
</listitem>
<listitem>
<para>Estimated disk space required: &vsftpd-buildsize;</para>
</listitem>
<listitem>
<para>Estimated build time: &vsftpd-time;</para>
</listitem>
</itemizedlist>
<para>For security reasons, running
<application>vs<acronym>FTP</acronym>D</application> as an unprivileged user
and group is encouraged. Also, a user to map anonymous users to should be
created.</para>
<bridgehead renderas="sect3">vsFTPD Dependencies</bridgehead>
<screen><userinput><command>install -d -m 0755 /var/ftp/empty &amp;&amp;
install -d -m 0755 /home/ftp &amp;&amp;
<bridgehead renderas="sect4">Optional</bridgehead>
<para><xref linkend="Linux_PAM"/>,
<xref linkend="openssl"/>, and
<xref linkend="tcpwrappers"/></para>
</sect2>
<sect2 role="installation">
<title>Installation of vsFTPD</title>
<para>For security reasons, running <application>vsFTPD</application>
as an unprivileged user and group is encouraged. Also, a user to map
anonymous users to should be created.</para>
<screen role="root"><userinput>install -v -d -m 0755 /var/ftp/empty &amp;&amp;
install -v -d -m 0755 /home/ftp &amp;&amp;
groupadd vsftpd &amp;&amp;
useradd -d /dev/null -c "vsFTPD User" -g vsftpd -s /bin/false vsftpd &amp;&amp;
groupadd ftp &amp;&amp;
useradd -c anonymous_user -d /home/ftp -g ftp -s /bin/false ftp</command>
</userinput></screen>
useradd -c anonymous_user -d /home/ftp -g ftp -s /bin/false ftp</userinput></screen>
<para>Install <application>vs<acronym>FTP</acronym>D</application> by running
the following commands:</para>
<para>Install <application>vsFTPD</application> by running
the following commands:</para>
<screen><userinput><command>make &amp;&amp;
install -m 755 vsftpd /usr/sbin/vsftpd &amp;&amp;
install -m 644 vsftpd.8 /usr/share/man/man8 &amp;&amp;
install -m 644 vsftpd.conf.5 /usr/share/man/man5 &amp;&amp;
install -m 644 vsftpd.conf /etc</command></userinput></screen>
<screen><userinput>make &amp;&amp;
install -v -m 755 vsftpd /usr/sbin/vsftpd &amp;&amp;
install -v -m 644 vsftpd.8 /usr/share/man/man8 &amp;&amp;
install -v -m 644 vsftpd.conf.5 /usr/share/man/man5 &amp;&amp;
install -v -m 644 vsftpd.conf /etc</userinput></screen>
</sect2>
</sect2>
<sect2>
<title>Command explanations</title>
<sect2 role="commands">
<title>Command Explanations</title>
<para><parameter>install -d [...]</parameter>: This creates the directory that
anonymous users will use (<filename class='directory'>/home/ftp</filename>)
and the directory the daemon will chroot into
(<filename class='directory'>/var/ftp/empty</filename>).</para>
<para><parameter>install -v -d [...]</parameter>: This creates the
directory that anonymous users will use (<filename
class='directory'>/home/ftp</filename>)
and the directory the daemon will chroot into
(<filename class='directory'>/var/ftp/empty</filename>).</para>
<note><para><filename class="directory">/home/ftp</filename> should not be
owned by the user vsftpd, or the user ftp.</para></note>
<note>
<para><filename class="directory">/home/ftp</filename> should not be
owned by the user <systemitem class="username">vsftpd</systemitem>,
or the user <systemitem class="username">ftp</systemitem>.</para>
</note>
<para><parameter>echo "#define VSF_BUILD_TCPWRAPPERS" >>builddefs.h</parameter>:
Use this prior to <command>make</command> to add support for
<application>tcpwrappers</application>.</para>
<para><option>echo "#define VSF_BUILD_TCPWRAPPERS" >>builddefs.h</option>:
Use this prior to <command>make</command> to add support for
<application>tcpwrappers</application>.</para>
<para><parameter>echo "#define VSF_BUILD_SSL" >>builddefs.h</parameter>:
Use this prior to <command>make</command> to add support for
<acronym>SSL</acronym>.</para>
<para><option>echo "#define VSF_BUILD_SSL" >>builddefs.h</option>:
Use this prior to <command>make</command> to add support for SSL.</para>
<para><parameter>install -m [...]</parameter>:
The <filename>Makefile</filename> hardwires
<filename class='directory'>/usr/local</filename> (if it exists). These
commands install the files in
<filename class='directory'>/usr</filename>.</para>
<para><option>install -m [...]</option>:
The <filename>Makefile</filename> hardwires
<filename class='directory'>/usr/local</filename> (if it exists). These
commands install the files in
<filename class='directory'>/usr</filename>.</para>
</sect2>
</sect2>
<sect2>
<title>Configuring <application>vs<acronym>FTP</acronym>D</application></title>
<sect2 role="configuration">
<title>Configuring vsFTPD</title>
<sect3><title>vsftpd init.d script</title>
<para>Install the <filename>/etc/rc.d/init.d/vsftpd</filename>
init script included in the
<xref linkend="intro-important-bootscripts"/> package.</para>
<sect3 id="vsftpd-config">
<title>Config Files</title>
<screen><userinput><command>make install-vsftpd</command></userinput></screen>
<para><filename>/etc/vsftpd.conf</filename></para>
</sect3>
<indexterm zone="vsftpd vsftpd-config">
<primary sortas="e-etc-vsftpd.conf">/etc/vsftpd.conf</primary>
</indexterm>
<sect3><title>Config files</title>
<para><filename>/etc/vsftpd.conf</filename></para>
</sect3>
</sect3>
<sect3><title>Configuration information</title>
<para><application>vs<acronym>FTP</acronym>D</application> comes with a basic
anonymous-only configuration file that was copied to
<filename class='directory'>/etc</filename> above. This file should be modified
because it is now recommended to run <command>vsftpd</command> in standalone
mode as opposed to <command>inetd</command>/<command>xinetd</command> mode.
Also, you should specify the privilege separation user created above. Finally,
you should specify the <command>chroot</command> directory.
<command>man vsftpd.conf</command> will give you all the details.</para>
<sect3>
<title>Configuration Information</title>
<screen><userinput><command>cat &gt;&gt; /etc/vsftpd.conf &lt;&lt; "EOF"</command>
background=YES
<para><application>vsFTPD</application> comes with a basic
anonymous-only configuration file that was copied to
<filename class='directory'>/etc</filename> above. This file should be
modified because it is now recommended to run <command>vsftpd</command>
in standalone mode as opposed to
<command>inetd</command>/<command>xinetd</command> mode. Also, you
should specify the privilege separation user created above. Finally,
you should specify the <command>chroot</command> directory.
<command>man vsftpd.conf</command> will give you all the details.</para>
<screen role="root"><userinput>cat &gt;&gt; /etc/vsftpd.conf &lt;&lt; "EOF"
<literal>background=YES
listen=YES
nopriv_user=vsftpd
secure_chroot_dir=/var/ftp/empty
<command>EOF</command></userinput></screen>
</sect3>
secure_chroot_dir=/var/ftp/empty</literal>
EOF</userinput></screen>
</sect2>
</sect3>
<sect2>
<title>Contents</title>
<sect3 id="vsftpd-init">
<title>Boot Script</title>
<para>The <application>vs<acronym>FTP</acronym>D</application> package contains
<command>vsftpd</command>.</para>
<para>Install the <filename>/etc/rc.d/init.d/vsftpd</filename>
init script included in the
<xref linkend="intro-important-bootscripts"/> package.</para>
</sect2>
<screen role="root"><userinput>make install-vsftpd</userinput></screen>
<sect2><title>Description</title>
</sect3>
<sect3><title>vsftpd</title>
<para><command>vsftpd</command> is the <acronym>FTP</acronym>
daemon.</para></sect3>
</sect2>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Program</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>
<seglistitem>
<seg>vsftpd</seg>
<seg>None</seg>
<seg>Not determined at this time</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="vsftpd-prog">
<term><command>vsftpd</command></term>
<listitem>
<para>is the FTP daemon.</para>
<indexterm zone="vsftpd vsftpd-prog">
<primary sortas="b-vsftpd">vsftpd</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>