[d7c8734] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
[12a352e2] | 7 | <!ENTITY vsftpd-download-http " ">
|
---|
[d7c8734] | 8 | <!ENTITY vsftpd-download-ftp "ftp://vsftpd.beasts.org/users/cevans/vsftpd-&vsftpd-version;.tar.gz">
|
---|
| 9 | <!ENTITY vsftpd-size "148 KB">
|
---|
| 10 | <!ENTITY vsftpd-buildsize "492 KB">
|
---|
[1586494] | 11 | <!ENTITY vsftpd-time "0.01 SBU">
|
---|
[d7c8734] | 12 | ]>
|
---|
| 13 |
|
---|
| 14 | <sect1 id="vsftpd" xreflabel="vsFTPD-&vsftpd-version;">
|
---|
[a0f03b0] | 15 | <sect1info>
|
---|
[5cd0959d] | 16 | <othername>$LastChangedBy$</othername>
|
---|
| 17 | <date>$Date$</date>
|
---|
[a0f03b0] | 18 | </sect1info>
|
---|
[d7c8734] | 19 | <?dbhtml filename="vsftpd.html"?>
|
---|
[1586494] | 20 | <title><application>vs<acronym>FTP</acronym>D</application>-&vsftpd-version;</title>
|
---|
[d7c8734] | 21 |
|
---|
| 22 | <sect2>
|
---|
[1586494] | 23 | <title>Introduction to
|
---|
| 24 | <application>vs<acronym>FTP</acronym>D</application></title>
|
---|
[d7c8734] | 25 |
|
---|
[1586494] | 26 | <para>The <application>vs<acronym>FTP</acronym>D</application> package
|
---|
| 27 | contains a very secure and very small <acronym>FTP</acronym> daemon. This is
|
---|
| 28 | useful for serving files over a network.</para>
|
---|
[d7c8734] | 29 |
|
---|
| 30 | <sect3><title>Package information</title>
|
---|
| 31 | <itemizedlist spacing='compact'>
|
---|
[1586494] | 32 | <listitem><para>Download (HTTP):
|
---|
| 33 | <ulink url="&vsftpd-download-http;"/></para></listitem>
|
---|
| 34 | <listitem><para>Download (FTP):
|
---|
| 35 | <ulink url="&vsftpd-download-ftp;"/></para></listitem>
|
---|
[d7c8734] | 36 | <listitem><para>Download size: &vsftpd-size;</para></listitem>
|
---|
[1586494] | 37 | <listitem><para>Estimated disk space required:
|
---|
| 38 | &vsftpd-buildsize;</para></listitem>
|
---|
| 39 | <listitem><para>Estimated build time:
|
---|
| 40 | &vsftpd-time;</para></listitem></itemizedlist>
|
---|
[d7c8734] | 41 | </sect3>
|
---|
| 42 |
|
---|
| 43 | <sect3><title><application>vsFTPD</application> dependencies</title>
|
---|
| 44 | <sect4><title>Optional</title>
|
---|
| 45 | <para><xref linkend="Linux_PAM"/>,
|
---|
| 46 | <xref linkend="openssl"/>, and
|
---|
[1586494] | 47 | <xref linkend="tcpwrappers"/></para>
|
---|
| 48 | </sect4>
|
---|
[d7c8734] | 49 | </sect3>
|
---|
| 50 |
|
---|
| 51 | </sect2>
|
---|
| 52 |
|
---|
| 53 | <sect2>
|
---|
| 54 | <title>Installation of <application>vsFTPD</application></title>
|
---|
| 55 |
|
---|
[1586494] | 56 | <para>For security reasons, running
|
---|
| 57 | <application>vs<acronym>FTP</acronym>D</application> as an unprivileged user
|
---|
| 58 | and group is encouraged. Also, a user to map anonymous users to should be
|
---|
| 59 | created.</para>
|
---|
[d7c8734] | 60 |
|
---|
[3f037be] | 61 | <screen><userinput><command>install -d -m 0755 /var/ftp/empty &&
|
---|
| 62 | install -d -m 0755 /home/ftp &&
|
---|
[d7c8734] | 63 | groupadd vsftpd &&
|
---|
[1586494] | 64 | useradd -d /dev/null -c "vsFTPD User" -g vsftpd -s /bin/false vsftpd &&
|
---|
[d7c8734] | 65 | groupadd ftp &&
|
---|
| 66 | useradd -c anonymous_user -d /home/ftp -g ftp -s /bin/false ftp</command>
|
---|
| 67 | </userinput></screen>
|
---|
| 68 |
|
---|
[1586494] | 69 | <para>Install <application>vs<acronym>FTP</acronym>D</application> by running
|
---|
| 70 | the following commands:</para>
|
---|
[d7c8734] | 71 |
|
---|
| 72 | <screen><userinput><command>make &&
|
---|
| 73 | install -m 755 vsftpd /usr/sbin/vsftpd &&
|
---|
[e4fef732] | 74 | install -m 644 vsftpd.8 /usr/share/man/man8 &&
|
---|
| 75 | install -m 644 vsftpd.conf.5 /usr/share/man/man5 &&
|
---|
[1586494] | 76 | install -m 644 vsftpd.conf /etc</command></userinput></screen>
|
---|
[d7c8734] | 77 |
|
---|
| 78 | </sect2>
|
---|
| 79 |
|
---|
| 80 | <sect2>
|
---|
| 81 | <title>Command explanations</title>
|
---|
| 82 |
|
---|
[3f037be] | 83 | <para><parameter>install -d [...]</parameter>: This creates the directory that
|
---|
[1586494] | 84 | anonymous users will use (<filename class='directory'>/home/ftp</filename>)
|
---|
| 85 | and the directory the daemon will chroot into
|
---|
| 86 | (<filename class='directory'>/var/ftp/empty</filename>).</para>
|
---|
[d7c8734] | 87 |
|
---|
| 88 | <note><para><filename class="directory">/home/ftp</filename> should not be
|
---|
| 89 | owned by the user vsftpd, or the user ftp.</para></note>
|
---|
| 90 |
|
---|
| 91 | <para><parameter>echo "#define VSF_BUILD_TCPWRAPPERS" >>builddefs.h</parameter>:
|
---|
[1586494] | 92 | Use this prior to <command>make</command> to add support for
|
---|
| 93 | <application>tcpwrappers</application>.</para>
|
---|
[d7c8734] | 94 |
|
---|
| 95 | <para><parameter>echo "#define VSF_BUILD_SSL" >>builddefs.h</parameter>:
|
---|
[1586494] | 96 | Use this prior to <command>make</command> to add support for
|
---|
| 97 | <acronym>SSL</acronym>.</para>
|
---|
[d7c8734] | 98 |
|
---|
| 99 | <para><parameter>install -m [...]</parameter>:
|
---|
[1586494] | 100 | The <filename>Makefile</filename> hardwires
|
---|
| 101 | <filename class='directory'>/usr/local</filename> (if it exists). These
|
---|
| 102 | commands install the files in
|
---|
| 103 | <filename class='directory'>/usr</filename>.</para>
|
---|
[d7c8734] | 104 |
|
---|
| 105 | </sect2>
|
---|
| 106 |
|
---|
| 107 | <sect2>
|
---|
[1586494] | 108 | <title>Configuring <application>vs<acronym>FTP</acronym>D</application></title>
|
---|
[d7c8734] | 109 |
|
---|
| 110 | <sect3><title>vsftpd init.d script</title>
|
---|
| 111 | <para>Install the <filename>/etc/rc.d/init.d/vsftpd</filename>
|
---|
[1586494] | 112 | init script included in the
|
---|
| 113 | <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
| 114 |
|
---|
[d7c8734] | 115 | <screen><userinput><command>make install-vsftpd</command></userinput></screen>
|
---|
| 116 |
|
---|
| 117 | </sect3>
|
---|
| 118 |
|
---|
| 119 | <sect3><title>Config files</title>
|
---|
[1586494] | 120 | <para><filename>/etc/vsftpd.conf</filename></para>
|
---|
| 121 | </sect3>
|
---|
[d7c8734] | 122 |
|
---|
[1586494] | 123 | <sect3><title>Configuration information</title>
|
---|
| 124 | <para><application>vs<acronym>FTP</acronym>D</application> comes with a basic
|
---|
| 125 | anonymous-only configuration file that was copied to
|
---|
| 126 | <filename class='directory'>/etc</filename> above. This file should be modified
|
---|
| 127 | because it is now recommended to run <command>vsftpd</command> in standalone
|
---|
| 128 | mode as opposed to <command>inetd</command>/<command>xinetd</command> mode.
|
---|
| 129 | Also, you should specify the privilege separation user created above. Finally,
|
---|
| 130 | you should specify the <command>chroot</command> directory.
|
---|
| 131 | <command>man vsftpd.conf</command> will give you all the details.</para>
|
---|
[d7c8734] | 132 |
|
---|
| 133 | <screen><userinput><command>cat >> /etc/vsftpd.conf << "EOF"</command>
|
---|
[e4fef732] | 134 | background=YES
|
---|
[d7c8734] | 135 | listen=YES
|
---|
| 136 | nopriv_user=vsftpd
|
---|
| 137 | secure_chroot_dir=/var/ftp/empty
|
---|
[1586494] | 138 | <command>EOF</command></userinput></screen>
|
---|
| 139 | </sect3>
|
---|
[d7c8734] | 140 |
|
---|
| 141 | </sect2>
|
---|
| 142 |
|
---|
| 143 | <sect2>
|
---|
| 144 | <title>Contents</title>
|
---|
| 145 |
|
---|
[1586494] | 146 | <para>The <application>vs<acronym>FTP</acronym>D</application> package contains
|
---|
[d7c8734] | 147 | <command>vsftpd</command>.</para>
|
---|
| 148 |
|
---|
| 149 | </sect2>
|
---|
| 150 |
|
---|
| 151 | <sect2><title>Description</title>
|
---|
| 152 |
|
---|
| 153 | <sect3><title>vsftpd</title>
|
---|
[1586494] | 154 | <para><command>vsftpd</command> is the <acronym>FTP</acronym>
|
---|
| 155 | daemon.</para></sect3>
|
---|
[d7c8734] | 156 |
|
---|
| 157 | </sect2>
|
---|
| 158 |
|
---|
| 159 | </sect1>
|
---|
| 160 |
|
---|