source: server/major/vsftpd.xml@ 2709dd3

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 2709dd3 was f6d2da1, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Update to vsftpd-3.0.2
Tag qpopper
Archive dvb-apps

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@10833 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.6 KB
RevLine 
[d7c8734]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[d7c8734]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[12a352e2]7 <!ENTITY vsftpd-download-http " ">
[a579a6a]8 <!ENTITY vsftpd-download-ftp "https://security.appspot.com/downloads/vsftpd-&vsftpd-version;.tar.gz">
[f6d2da1]9 <!ENTITY vsftpd-md5sum "8b00c749719089401315bd3c44dddbb2">
[59c4cab]10 <!ENTITY vsftpd-size "196 KB">
[5f2eb36]11 <!ENTITY vsftpd-buildsize "1.8 MB">
[939e5f5]12 <!ENTITY vsftpd-time "less than 0.1 SBU">
[d7c8734]13]>
14
[32ccdf34]15<sect1 id="vsftpd" xreflabel="vsftpd-&vsftpd-version;">
[f8ff412]16 <?dbhtml filename="vsftpd.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
[32ccdf34]23 <title>vsftpd-&vsftpd-version;</title>
[f8ff412]24
25 <indexterm zone="vsftpd">
[32ccdf34]26 <primary sortas="a-vsftpd">vsftpd</primary>
[f8ff412]27 </indexterm>
28
[4e82a189]29 <sect2 role="package">
[32ccdf34]30 <title>Introduction to vsftpd</title>
[f8ff412]31
[32ccdf34]32 <para>The <application>vsftpd</application> package contains a very
[f8ff412]33 secure and very small FTP daemon. This is useful for serving files
34 over a network.</para>
35
[f6d2da1]36 &lfs72_checked;
[5f2eb36]37
[f8ff412]38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&vsftpd-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&vsftpd-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &vsftpd-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &vsftpd-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &vsftpd-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &vsftpd-time;</para>
57 </listitem>
58 </itemizedlist>
59
[32ccdf34]60 <bridgehead renderas="sect3">vsftpd Dependencies</bridgehead>
[f8ff412]61
62 <bridgehead renderas="sect4">Optional</bridgehead>
[e79ed72]63 <para role="optional">
64 <xref linkend="linux-pam"/>,
[bc6e56d]65 <xref linkend="openssl"/> and
[e79ed72]66 <xref linkend="libcap2"/>
67 </para>
[f8ff412]68
[3cb0c57]69 <para condition="html" role="usernotes">User Notes:
70 <ulink url="&blfs-wiki;/vsftpd"/></para>
71
[f8ff412]72 </sect2>
73
74 <sect2 role="installation">
[32ccdf34]75 <title>Installation of vsftpd</title>
[f8ff412]76
[32ccdf34]77 <para>For security reasons, running <application>vsftpd</application>
[939e5f5]78 as an unprivileged user and group is encouraged. Also, a user should be
79 created to map anonymous users. As the <systemitem
80 class="username">root</systemitem> user, create the needed directories,
81 users, and groups with the following commands:</para>
[f8ff412]82
83<screen role="root"><userinput>install -v -d -m 0755 /var/ftp/empty &amp;&amp;
[5f2eb36]84install -v -d -m 0755 /home/ftp &amp;&amp;
85groupadd -g 47 vsftpd &amp;&amp;
86groupadd -g 45 ftp &amp;&amp;
87useradd -c "vsftpd User" -d /dev/null -g vsftpd -s /bin/false -u 47 vsftpd &amp;&amp;
88useradd -c anonymous_user -d /home/ftp -g ftp -s /bin/false -u 45 ftp</userinput></screen>
89
90 <para>If you did not install the optional <application>libcap2</application> package,
91 run the following to avoid a build error:</para>
92
[1365d551]93<screen><userinput>sed -i -e 's|#define VSF_SYSDEP_HAVE_LIBCAP|//&amp;|' sysdeputil.c</userinput></screen>
[d7c8734]94
[32ccdf34]95 <para>Build <application>vsftpd</application> as an unprivileged user
[2bc0646]96 using the following command:</para>
[d7c8734]97
[939e5f5]98<screen><userinput>make</userinput></screen>
99
[81d09ea]100 <para>This package does not come with a test suite.</para>
101
[939e5f5]102 <para>Once again, become the <systemitem class="username">root</systemitem>
[32ccdf34]103 user and install <application>vsftpd</application> with the following
[939e5f5]104 commands:</para>
105
[5f2eb36]106<screen><userinput>install -v -m 755 vsftpd /usr/sbin/vsftpd &amp;&amp;
107install -v -m 644 vsftpd.8 /usr/share/man/man8 &amp;&amp;
[f8ff412]108install -v -m 644 vsftpd.conf.5 /usr/share/man/man5 &amp;&amp;
[5f2eb36]109install -v -m 644 vsftpd.conf /etc</userinput></screen>
[d7c8734]110
[f8ff412]111 </sect2>
[d7c8734]112
[f8ff412]113 <sect2 role="commands">
114 <title>Command Explanations</title>
[d7c8734]115
[2bc0646]116 <para><command>install -v -d ...</command>: This creates the
[f8ff412]117 directory that anonymous users will use (<filename
118 class='directory'>/home/ftp</filename>)
119 and the directory the daemon will chroot into
120 (<filename class='directory'>/var/ftp/empty</filename>).</para>
[d7c8734]121
[f8ff412]122 <note>
123 <para><filename class="directory">/home/ftp</filename> should not be
124 owned by the user <systemitem class="username">vsftpd</systemitem>,
125 or the user <systemitem class="username">ftp</systemitem>.</para>
126 </note>
[d7c8734]127
[2bc0646]128 <para><command>echo "#define VSF_BUILD_TCPWRAPPERS" >>builddefs.h</command>:
[f8ff412]129 Use this prior to <command>make</command> to add support for
130 <application>tcpwrappers</application>.</para>
[d7c8734]131
[2bc0646]132 <para><command>echo "#define VSF_BUILD_SSL" >>builddefs.h</command>:
[f8ff412]133 Use this prior to <command>make</command> to add support for SSL.</para>
[d7c8734]134
[2bc0646]135 <para><command>install -v -m ...</command>:
136 The <filename>Makefile</filename> uses non-standard installation paths.
137 These commands install the files in
138 <filename class='directory'>/usr</filename> and
139 <filename class='directory'>/etc</filename>.</para>
[d7c8734]140
[f8ff412]141 </sect2>
[d7c8734]142
[f8ff412]143 <sect2 role="configuration">
[32ccdf34]144 <title>Configuring vsftpd</title>
[d7c8734]145
[f8ff412]146 <sect3 id="vsftpd-config">
147 <title>Config Files</title>
[1586494]148
[f8ff412]149 <para><filename>/etc/vsftpd.conf</filename></para>
[d7c8734]150
[f8ff412]151 <indexterm zone="vsftpd vsftpd-config">
152 <primary sortas="e-etc-vsftpd.conf">/etc/vsftpd.conf</primary>
153 </indexterm>
[d7c8734]154
[f8ff412]155 </sect3>
[d7c8734]156
[f8ff412]157 <sect3>
158 <title>Configuration Information</title>
[d7c8734]159
[32ccdf34]160 <para><application>vsftpd</application> comes with a basic
[f8ff412]161 anonymous-only configuration file that was copied to
[939e5f5]162 <filename class='directory'>/etc</filename> above. While still as
163 <systemitem class="username">root</systemitem>, this file should be
[f8ff412]164 modified because it is now recommended to run <command>vsftpd</command>
[59048cd9]165 in standalone mode. <!-- as opposed to
166 <command>inetd</command>/<command>xinetd</command> mode. -->Also, you
[f8ff412]167 should specify the privilege separation user created above. Finally,
168 you should specify the <command>chroot</command> directory.
169 <command>man vsftpd.conf</command> will give you all the details.</para>
170
171<screen role="root"><userinput>cat &gt;&gt; /etc/vsftpd.conf &lt;&lt; "EOF"
172<literal>background=YES
[d7c8734]173listen=YES
174nopriv_user=vsftpd
[f8ff412]175secure_chroot_dir=/var/ftp/empty</literal>
176EOF</userinput></screen>
[d7c8734]177
[f8ff412]178 </sect3>
[d7c8734]179
[f8ff412]180 <sect3 id="vsftpd-init">
181 <title>Boot Script</title>
[d7c8734]182
[f8ff412]183 <para>Install the <filename>/etc/rc.d/init.d/vsftpd</filename>
184 init script included in the
[5254d12]185 <xref linkend="bootscripts"/> package.</para>
[d7c8734]186
[f8ff412]187<screen role="root"><userinput>make install-vsftpd</userinput></screen>
[d7c8734]188
[f8ff412]189 </sect3>
[d7c8734]190
[f8ff412]191 </sect2>
[d7c8734]192
[f8ff412]193 <sect2 role="content">
194 <title>Contents</title>
[d7c8734]195
[f8ff412]196 <segmentedlist>
197 <segtitle>Installed Program</segtitle>
198 <segtitle>Installed Libraries</segtitle>
199 <segtitle>Installed Directories</segtitle>
200
201 <seglistitem>
202 <seg>vsftpd</seg>
203 <seg>None</seg>
[939e5f5]204 <seg>/var/ftp, /var/ftp/empty, /home/ftp</seg>
[f8ff412]205 </seglistitem>
206 </segmentedlist>
207
208 <variablelist>
209 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
210 <?dbfo list-presentation="list"?>
211 <?dbhtml list-presentation="table"?>
[d7c8734]212
[f8ff412]213 <varlistentry id="vsftpd-prog">
214 <term><command>vsftpd</command></term>
215 <listitem>
216 <para>is the FTP daemon.</para>
217 <indexterm zone="vsftpd vsftpd-prog">
218 <primary sortas="b-vsftpd">vsftpd</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 </variablelist>
224
225 </sect2>
226
227</sect1>
Note: See TracBrowser for help on using the repository browser.