source: content/web/vsftpd.xml@ 7f76b96

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 7f76b96 was 7f76b96, checked in by Manuel Canales Esparcia <manuel@…>, 19 years ago

Reverted the DTD change. That don't be done untiltomorrow.

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

  • Property mode set to 100644
File size: 5.5 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
3 "http://www.oasis-open.org/docbook/xml/4.3/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<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="vsftpd.html"?>
21<title><application>vs<acronym>FTP</acronym>D</application>-&vsftpd-version;
22</title>
23
24<sect2>
25<title>Introduction to
26<application>vs<acronym>FTP</acronym>D</application></title>
27
28<para>The <application>vs<acronym>FTP</acronym>D</application> package
29contains a very secure and very small <acronym>FTP</acronym> daemon. This is
30useful for serving files over a network.</para>
31
32<sect3><title>Package information</title>
33<itemizedlist spacing='compact'>
34<listitem><para>Download (HTTP):
35<ulink url="&vsftpd-download-http;"/></para></listitem>
36<listitem><para>Download (FTP):
37<ulink url="&vsftpd-download-ftp;"/></para></listitem>
38<listitem><para>Download MD5 sum: &vsftpd-md5sum;</para></listitem>
39<listitem><para>Download size: &vsftpd-size;</para></listitem>
40<listitem><para>Estimated disk space required:
41&vsftpd-buildsize;</para></listitem>
42<listitem><para>Estimated build time:
43&vsftpd-time;</para></listitem></itemizedlist>
44</sect3>
45
46<sect3><title><application>vsFTPD</application> dependencies</title>
47<sect4><title>Optional</title>
48<para><xref linkend="Linux_PAM"/>,
49<xref linkend="openssl"/>, and
50<xref linkend="tcpwrappers"/></para>
51</sect4>
52</sect3>
53
54</sect2>
55
56<sect2>
57<title>Installation of <application>vsFTPD</application></title>
58
59<para>For security reasons, running
60<application>vs<acronym>FTP</acronym>D</application> as an unprivileged user
61and group is encouraged. Also, a user to map anonymous users to should be
62created.</para>
63
64<screen><userinput><command>install -d -m 0755 /var/ftp/empty &amp;&amp;
65install -d -m 0755 /home/ftp &amp;&amp;
66groupadd vsftpd &amp;&amp;
67useradd -d /dev/null -c "vsFTPD User" -g vsftpd -s /bin/false vsftpd &amp;&amp;
68groupadd ftp &amp;&amp;
69useradd -c anonymous_user -d /home/ftp -g ftp -s /bin/false ftp</command>
70</userinput></screen>
71
72<para>Install <application>vs<acronym>FTP</acronym>D</application> by running
73the following commands:</para>
74
75<screen><userinput><command>make &amp;&amp;
76install -m 755 vsftpd /usr/sbin/vsftpd &amp;&amp;
77install -m 644 vsftpd.8 /usr/share/man/man8 &amp;&amp;
78install -m 644 vsftpd.conf.5 /usr/share/man/man5 &amp;&amp;
79install -m 644 vsftpd.conf /etc</command></userinput></screen>
80
81</sect2>
82
83<sect2>
84<title>Command explanations</title>
85
86<para><parameter>install -d [...]</parameter>: This creates the directory that
87anonymous users will use (<filename class='directory'>/home/ftp</filename>)
88and the directory the daemon will chroot into
89(<filename class='directory'>/var/ftp/empty</filename>).</para>
90
91<note><para><filename class="directory">/home/ftp</filename> should not be
92owned by the user vsftpd, or the user ftp.</para></note>
93
94<para><parameter>echo "#define VSF_BUILD_TCPWRAPPERS" >>builddefs.h</parameter>:
95Use this prior to <command>make</command> to add support for
96<application>tcpwrappers</application>.</para>
97
98<para><parameter>echo "#define VSF_BUILD_SSL" >>builddefs.h</parameter>:
99Use this prior to <command>make</command> to add support for
100<acronym>SSL</acronym>.</para>
101
102<para><parameter>install -m [...]</parameter>:
103The <filename>Makefile</filename> hardwires
104<filename class='directory'>/usr/local</filename> (if it exists). These
105commands install the files in
106<filename class='directory'>/usr</filename>.</para>
107
108</sect2>
109
110<sect2>
111<title>Configuring <application>vs<acronym>FTP</acronym>D</application></title>
112
113<sect3><title>vsftpd init.d script</title>
114<para>Install the <filename>/etc/rc.d/init.d/vsftpd</filename>
115init script included in the
116<xref linkend="intro-important-bootscripts"/> package.</para>
117
118<screen><userinput><command>make install-vsftpd</command></userinput></screen>
119
120</sect3>
121
122<sect3><title>Config files</title>
123<para><filename>/etc/vsftpd.conf</filename></para>
124</sect3>
125
126<sect3><title>Configuration information</title>
127<para><application>vs<acronym>FTP</acronym>D</application> comes with a basic
128anonymous-only configuration file that was copied to
129<filename class='directory'>/etc</filename> above. This file should be modified
130because it is now recommended to run <command>vsftpd</command> in standalone
131mode as opposed to <command>inetd</command>/<command>xinetd</command> mode.
132Also, you should specify the privilege separation user created above. Finally,
133you should specify the <command>chroot</command> directory.
134<command>man vsftpd.conf</command> will give you all the details.</para>
135
136<screen><userinput><command>cat &gt;&gt; /etc/vsftpd.conf &lt;&lt; "EOF"</command>
137background=YES
138listen=YES
139nopriv_user=vsftpd
140secure_chroot_dir=/var/ftp/empty
141<command>EOF</command></userinput></screen>
142</sect3>
143
144</sect2>
145
146<sect2>
147<title>Contents</title>
148
149<para>The <application>vs<acronym>FTP</acronym>D</application> package contains
150<command>vsftpd</command>.</para>
151
152</sect2>
153
154<sect2><title>Description</title>
155
156<sect3><title>vsftpd</title>
157<para><command>vsftpd</command> is the <acronym>FTP</acronym>
158daemon.</para></sect3>
159
160</sect2>
161
162</sect1>
163
Note: See TracBrowser for help on using the repository browser.