source: server/major/vsftpd.xml@ c67fbf64

systemd-11177
Last change on this file since c67fbf64 was c67fbf64, checked in by Krejzi <krejzi@…>, 11 years ago

Remove packages that are now in lfs systemd from blfs.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@11302 af4574ff-66df-0310-9fd7-8a98e5e911e0

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