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