source: server/major/vsftpd.xml@ b785ab29

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.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 b785ab29 was b785ab29, checked in by Bruce Dubbs <bdubbs@…>, 19 years ago

Integrated system uid and gid values

into individual packages.

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

  • Property mode set to 100644
File size: 6.7 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 "63838791ec8b1375ed154fb2603e52e9">
10 <!ENTITY vsftpd-size "148 KB">
11 <!ENTITY vsftpd-buildsize "492 KB">
12 <!ENTITY vsftpd-time "0.01 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><xref linkend="Linux_PAM"/>,
62 <xref linkend="openssl"/>, and
63 <xref linkend="tcpwrappers"/></para>
64
65 </sect2>
66
67 <sect2 role="installation">
68 <title>Installation of vsFTPD</title>
69
70 <para>For security reasons, running <application>vsFTPD</application>
71 as an unprivileged user and group is encouraged. Also, a user to map
72 anonymous users to should be created.</para>
73
74<screen role="root"><userinput>install -v -d -m 0755 /var/ftp/empty &amp;&amp;
75install -v -d -m 0755 /home/ftp &amp;&amp;
76groupadd -g 47 vsftpd &amp;&amp;
77useradd -d /dev/null -c "vsFTPD User" -g vsftpd -s /bin/false \
78 -u 47 vsftpd &amp;&amp;
79groupadd -g 45 ftp &amp;&amp;
80useradd -c anonymous_user -d /home/ftp -g ftp -s /bin/false -u 45 ftp</userinput></screen>
81
82 <para>Install <application>vsFTPD</application> by running
83 the following commands:</para>
84
85<screen><userinput>make &amp;&amp;
86install -v -m 755 vsftpd /usr/sbin/vsftpd &amp;&amp;
87install -v -m 644 vsftpd.8 /usr/share/man/man8 &amp;&amp;
88install -v -m 644 vsftpd.conf.5 /usr/share/man/man5 &amp;&amp;
89install -v -m 644 vsftpd.conf /etc</userinput></screen>
90
91 </sect2>
92
93 <sect2 role="commands">
94 <title>Command Explanations</title>
95
96 <para><parameter>install -v -d [...]</parameter>: This creates the
97 directory that anonymous users will use (<filename
98 class='directory'>/home/ftp</filename>)
99 and the directory the daemon will chroot into
100 (<filename class='directory'>/var/ftp/empty</filename>).</para>
101
102 <note>
103 <para><filename class="directory">/home/ftp</filename> should not be
104 owned by the user <systemitem class="username">vsftpd</systemitem>,
105 or the user <systemitem class="username">ftp</systemitem>.</para>
106 </note>
107
108 <para><option>echo "#define VSF_BUILD_TCPWRAPPERS" >>builddefs.h</option>:
109 Use this prior to <command>make</command> to add support for
110 <application>tcpwrappers</application>.</para>
111
112 <para><option>echo "#define VSF_BUILD_SSL" >>builddefs.h</option>:
113 Use this prior to <command>make</command> to add support for SSL.</para>
114
115 <para><option>install -m [...]</option>:
116 The <filename>Makefile</filename> hardwires
117 <filename class='directory'>/usr/local</filename> (if it exists). These
118 commands install the files in
119 <filename class='directory'>/usr</filename>.</para>
120
121 </sect2>
122
123 <sect2 role="configuration">
124 <title>Configuring vsFTPD</title>
125
126 <sect3 id="vsftpd-config">
127 <title>Config Files</title>
128
129 <para><filename>/etc/vsftpd.conf</filename></para>
130
131 <indexterm zone="vsftpd vsftpd-config">
132 <primary sortas="e-etc-vsftpd.conf">/etc/vsftpd.conf</primary>
133 </indexterm>
134
135 </sect3>
136
137 <sect3>
138 <title>Configuration Information</title>
139
140 <para><application>vsFTPD</application> comes with a basic
141 anonymous-only configuration file that was copied to
142 <filename class='directory'>/etc</filename> above. This file should be
143 modified because it is now recommended to run <command>vsftpd</command>
144 in standalone mode as opposed to
145 <command>inetd</command>/<command>xinetd</command> mode. Also, you
146 should specify the privilege separation user created above. Finally,
147 you should specify the <command>chroot</command> directory.
148 <command>man vsftpd.conf</command> will give you all the details.</para>
149
150<screen role="root"><userinput>cat &gt;&gt; /etc/vsftpd.conf &lt;&lt; "EOF"
151<literal>background=YES
152listen=YES
153nopriv_user=vsftpd
154secure_chroot_dir=/var/ftp/empty</literal>
155EOF</userinput></screen>
156
157 </sect3>
158
159 <sect3 id="vsftpd-init">
160 <title>Boot Script</title>
161
162 <para>Install the <filename>/etc/rc.d/init.d/vsftpd</filename>
163 init script included in the
164 <xref linkend="intro-important-bootscripts"/> package.</para>
165
166<screen role="root"><userinput>make install-vsftpd</userinput></screen>
167
168 </sect3>
169
170 </sect2>
171
172 <sect2 role="content">
173 <title>Contents</title>
174
175 <segmentedlist>
176 <segtitle>Installed Program</segtitle>
177 <segtitle>Installed Libraries</segtitle>
178 <segtitle>Installed Directories</segtitle>
179
180 <seglistitem>
181 <seg>vsftpd</seg>
182 <seg>None</seg>
183 <seg>Not determined at this time</seg>
184 </seglistitem>
185 </segmentedlist>
186
187 <variablelist>
188 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
189 <?dbfo list-presentation="list"?>
190 <?dbhtml list-presentation="table"?>
191
192 <varlistentry id="vsftpd-prog">
193 <term><command>vsftpd</command></term>
194 <listitem>
195 <para>is the FTP daemon.</para>
196 <indexterm zone="vsftpd vsftpd-prog">
197 <primary sortas="b-vsftpd">vsftpd</primary>
198 </indexterm>
199 </listitem>
200 </varlistentry>
201
202 </variablelist>
203
204 </sect2>
205
206</sect1>
Note: See TracBrowser for help on using the repository browser.