source: server/major/vsftpd.xml@ 32ccdf34

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 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 32ccdf34 was 32ccdf34, checked in by Bruce Dubbs <bdubbs@…>, 18 years ago

Update to vsftpd-2.0.4

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

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