source: content/web/vsftpd.xml@ 3f037be

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 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 3f037be was 3f037be, checked in by Archaic <archaic@…>, 20 years ago

Added changelog entry and a couple of textual changes

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

  • Property mode set to 100644
File size: 4.7 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-size "148 KB">
10 <!ENTITY vsftpd-buildsize "492 KB">
11 <!ENTITY vsftpd-time "0.0 SBU">
12]>
13
14<sect1 id="vsftpd" xreflabel="vsFTPD-&vsftpd-version;">
15<?dbhtml filename="vsftpd.html"?>
16<title>vsFTPD-&vsftpd-version;</title>
17
18<sect2>
19<title>Introduction to vsFTPD</title>
20
21<para>The <application>vsFTPD</application> package contains a very secure and
22very small FTP daemon. This is useful for serving files over a network.</para>
23
24<sect3><title>Package information</title>
25<itemizedlist spacing='compact'>
26<listitem><para>Download (HTTP):<ulink url="&vsftpd-download-http;"/></para></listitem>
27<listitem><para>Download (FTP): <ulink url="&vsftpd-download-ftp;"/></para></listitem>
28<listitem><para>Download size: &vsftpd-size;</para></listitem>
29<listitem><para>Estimated Disk space required: &vsftpd-buildsize;</para></listitem>
30<listitem><para>Estimated build time: &vsftpd-time;</para></listitem></itemizedlist>
31</sect3>
32
33<sect3><title><application>vsFTPD</application> dependencies</title>
34<sect4><title>Optional</title>
35<para><xref linkend="Linux_PAM"/>,
36<xref linkend="openssl"/>, and
37<xref linkend="tcpwrappers"/></para></sect4>
38</sect3>
39
40</sect2>
41
42<sect2>
43<title>Installation of <application>vsFTPD</application></title>
44
45<para>For security reasons, running <application>vsFTPD</application> as an
46unprivileged user and group is encouraged. Also, we need a user to map
47anonymous users to.</para>
48
49<screen><userinput><command>install -d -m 0755 /var/ftp/empty &amp;&amp;
50install -d -m 0755 /home/ftp &amp;&amp;
51groupadd vsftpd &amp;&amp;
52useradd -d /dev/null -g vsftpd -s /bin/false vsftpd &amp;&amp;
53groupadd ftp &amp;&amp;
54useradd -c anonymous_user -d /home/ftp -g ftp -s /bin/false ftp</command>
55</userinput></screen>
56
57<para>Install <application>vsFTPD</application> by running the following commands:</para>
58
59<screen><userinput><command>make &amp;&amp;
60install -m 755 vsftpd /usr/sbin/vsftpd &amp;&amp;
61install -m 644 vsftpd.8 /usr/share/man/man5 &amp;&amp;
62install -m 644 vsftpd.conf.5 /usr/share/man/man8 &amp;&amp;
63install -m 644 vsftpd.conf /etc
64</command></userinput></screen>
65
66</sect2>
67
68<sect2>
69<title>Command explanations</title>
70
71<para><parameter>install -d [...]</parameter>: This creates the directory that
72anonymous users will use (/home/ftp) and the directory the daemon will chroot
73into (/var/ftp/empty).</para>
74
75<note><para><filename class="directory">/home/ftp</filename> should not be
76owned by the user vsftpd, or the user ftp.</para></note>
77
78<para><parameter>echo "#define VSF_BUILD_TCPWRAPPERS" >>builddefs.h</parameter>:
79Use this prior to make to add support for tcpwrappers.</para>
80
81<para><parameter>echo "#define VSF_BUILD_SSL" >>builddefs.h</parameter>:
82Use this prior to make to add support for SSL.</para>
83
84<para><parameter>install -m [...]</parameter>:
85The Makefile hardwires /usr/local (if it exists). We want the files in /usr.</para>
86
87</sect2>
88
89<sect2>
90<title>Configuring <application>vsFTPD</application></title>
91
92<sect3><title>vsftpd init.d script</title>
93<para>Install the <filename>/etc/rc.d/init.d/vsftpd</filename>
94init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
95
96<screen><userinput><command>make install-vsftpd</command></userinput></screen>
97
98</sect3>
99
100<sect3><title>Config files</title>
101
102<para><filename>/etc/vsftpd.conf</filename></para> <para>vsFTPD comes with a
103basic anonymous-only configuration file that was copied to /etc above. We will
104modify this file because it is now recommended to run vsFTPD in standalone mode
105as opposed to inetd/xinetd mode. Also, we need to specify the priviledge
106separation user we created above. Finally, we need to specify the chroot
107directory. <command>man vsftpd.conf</command> will give you all the
108details.</para>
109
110<screen><userinput><command>cat &gt;&gt; /etc/vsftpd.conf &lt;&lt; "EOF"</command>
111listen=YES
112nopriv_user=vsftpd
113secure_chroot_dir=/var/ftp/empty
114<command>EOF</command></userinput></screen></sect3>
115
116</sect2>
117
118<sect2>
119<title>Contents</title>
120
121<para>The <application>vsFTPD</application> package contains
122<command>vsftpd</command>.</para>
123
124</sect2>
125
126<sect2><title>Description</title>
127
128<sect3><title>vsftpd</title>
129<para><command>vsftpd</command> is the daemon itself.</para></sect3>
130
131</sect2>
132
133</sect1>
134
Note: See TracBrowser for help on using the repository browser.