source: server/major/vsftpd.xml@ 4a64560a

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 4a64560a was 4a64560a, checked in by Randy McMurchy <randy@…>, 14 years ago

Updated all instances of the dependency package 'libcap' to the current 'libcap2' version maintained at kernel.org

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@8353 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.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 "ftp://vsftpd.beasts.org/users/cevans/vsftpd-&vsftpd-version;.tar.gz">
9 <!ENTITY vsftpd-md5sum "146062e8b2f93af43ff6c2c770feea94">
10 <!ENTITY vsftpd-size "152 KB">
11 <!ENTITY vsftpd-buildsize "1.5 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 <bridgehead renderas="sect3">Package Information</bridgehead>
37 <itemizedlist spacing="compact">
38 <listitem>
39 <para>Download (HTTP): <ulink url="&vsftpd-download-http;"/></para>
40 </listitem>
41 <listitem>
42 <para>Download (FTP): <ulink url="&vsftpd-download-ftp;"/></para>
43 </listitem>
44 <listitem>
45 <para>Download MD5 sum: &vsftpd-md5sum;</para>
46 </listitem>
47 <listitem>
48 <para>Download size: &vsftpd-size;</para>
49 </listitem>
50 <listitem>
51 <para>Estimated disk space required: &vsftpd-buildsize;</para>
52 </listitem>
53 <listitem>
54 <para>Estimated build time: &vsftpd-time;</para>
55 </listitem>
56 </itemizedlist>
57
58 <bridgehead renderas="sect3">vsftpd Dependencies</bridgehead>
59
60 <bridgehead renderas="sect4">Optional</bridgehead>
61 <para role="optional"><xref linkend="linux-pam"/>,
62 <xref linkend="openssl"/>, <xref linkend="tcpwrappers"/>, and
63 <ulink url="http://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/">libcap2</ulink></para>
64
65 <para condition="html" role="usernotes">User Notes:
66 <ulink url="&blfs-wiki;/vsftpd"/></para>
67
68 </sect2>
69
70 <sect2 role="installation">
71 <title>Installation of vsftpd</title>
72
73 <para>For security reasons, running <application>vsftpd</application>
74 as an unprivileged user and group is encouraged. Also, a user should be
75 created to map anonymous users. As the <systemitem
76 class="username">root</systemitem> user, create the needed directories,
77 users, and groups with the following commands:</para>
78
79<screen role="root"><userinput>install -v -d -m 0755 /var/ftp/empty &amp;&amp;
80install -v -d -m 0755 /home/ftp &amp;&amp;
81groupadd -g 47 vsftpd &amp;&amp;
82useradd -d /dev/null -c "vsftpd User" -g vsftpd -s /bin/false \
83 -u 47 vsftpd &amp;&amp;
84groupadd -g 45 ftp &amp;&amp;
85useradd -c anonymous_user -d /home/ftp -g ftp -s /bin/false -u 45 ftp</userinput></screen>
86
87 <para>Build <application>vsftpd</application> as an unprivileged user
88 using the following command:</para>
89
90<screen><userinput>make</userinput></screen>
91
92 <para>This package does not come with a test suite.</para>
93
94 <para>Once again, become the <systemitem class="username">root</systemitem>
95 user and install <application>vsftpd</application> with the following
96 commands:</para>
97
98<screen><userinput>install -v -m 755 vsftpd /usr/sbin/vsftpd &amp;&amp;
99install -v -m 644 vsftpd.8 /usr/share/man/man8 &amp;&amp;
100install -v -m 644 vsftpd.conf.5 /usr/share/man/man5 &amp;&amp;
101install -v -m 644 vsftpd.conf /etc</userinput></screen>
102
103 </sect2>
104
105 <sect2 role="commands">
106 <title>Command Explanations</title>
107
108 <para><command>install -v -d ...</command>: This creates the
109 directory that anonymous users will use (<filename
110 class='directory'>/home/ftp</filename>)
111 and the directory the daemon will chroot into
112 (<filename class='directory'>/var/ftp/empty</filename>).</para>
113
114 <note>
115 <para><filename class="directory">/home/ftp</filename> should not be
116 owned by the user <systemitem class="username">vsftpd</systemitem>,
117 or the user <systemitem class="username">ftp</systemitem>.</para>
118 </note>
119
120 <para><command>echo "#define VSF_BUILD_TCPWRAPPERS" >>builddefs.h</command>:
121 Use this prior to <command>make</command> to add support for
122 <application>tcpwrappers</application>.</para>
123
124 <para><command>echo "#define VSF_BUILD_SSL" >>builddefs.h</command>:
125 Use this prior to <command>make</command> to add support for SSL.</para>
126
127 <para><command>install -v -m ...</command>:
128 The <filename>Makefile</filename> uses non-standard installation paths.
129 These commands install the files in
130 <filename class='directory'>/usr</filename> and
131 <filename class='directory'>/etc</filename>.</para>
132
133 </sect2>
134
135 <sect2 role="configuration">
136 <title>Configuring vsftpd</title>
137
138 <sect3 id="vsftpd-config">
139 <title>Config Files</title>
140
141 <para><filename>/etc/vsftpd.conf</filename></para>
142
143 <indexterm zone="vsftpd vsftpd-config">
144 <primary sortas="e-etc-vsftpd.conf">/etc/vsftpd.conf</primary>
145 </indexterm>
146
147 </sect3>
148
149 <sect3>
150 <title>Configuration Information</title>
151
152 <para><application>vsftpd</application> comes with a basic
153 anonymous-only configuration file that was copied to
154 <filename class='directory'>/etc</filename> above. While still as
155 <systemitem class="username">root</systemitem>, this file should be
156 modified because it is now recommended to run <command>vsftpd</command>
157 in standalone mode as opposed to
158 <command>inetd</command>/<command>xinetd</command> mode. Also, you
159 should specify the privilege separation user created above. Finally,
160 you should specify the <command>chroot</command> directory.
161 <command>man vsftpd.conf</command> will give you all the details.</para>
162
163<screen role="root"><userinput>cat &gt;&gt; /etc/vsftpd.conf &lt;&lt; "EOF"
164<literal>background=YES
165listen=YES
166nopriv_user=vsftpd
167secure_chroot_dir=/var/ftp/empty</literal>
168EOF</userinput></screen>
169
170 </sect3>
171
172 <sect3 id="vsftpd-init">
173 <title>Boot Script</title>
174
175 <para>Install the <filename>/etc/rc.d/init.d/vsftpd</filename>
176 init script included in the
177 <xref linkend="bootscripts"/> package.</para>
178
179<screen role="root"><userinput>make install-vsftpd</userinput></screen>
180
181 </sect3>
182
183 </sect2>
184
185 <sect2 role="content">
186 <title>Contents</title>
187
188 <segmentedlist>
189 <segtitle>Installed Program</segtitle>
190 <segtitle>Installed Libraries</segtitle>
191 <segtitle>Installed Directories</segtitle>
192
193 <seglistitem>
194 <seg>vsftpd</seg>
195 <seg>None</seg>
196 <seg>/var/ftp, /var/ftp/empty, /home/ftp</seg>
197 </seglistitem>
198 </segmentedlist>
199
200 <variablelist>
201 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
202 <?dbfo list-presentation="list"?>
203 <?dbhtml list-presentation="table"?>
204
205 <varlistentry id="vsftpd-prog">
206 <term><command>vsftpd</command></term>
207 <listitem>
208 <para>is the FTP daemon.</para>
209 <indexterm zone="vsftpd vsftpd-prog">
210 <primary sortas="b-vsftpd">vsftpd</primary>
211 </indexterm>
212 </listitem>
213 </varlistentry>
214
215 </variablelist>
216
217 </sect2>
218
219</sect1>
Note: See TracBrowser for help on using the repository browser.