source: server/major/vsftpd.xml@ 627c062

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 627c062 was 627c062, checked in by Pierre Labastie <pieere@…>, 9 years ago

Tag networking and server, except bind

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

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