source: server/major/proftpd.xml@ de1a0d9

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 de1a0d9 was 56605b9, checked in by Bruce Dubbs <bdubbs@…>, 10 years ago

Remove XML::Parser from perl modules
Archive acl, attr, intltool, expat, gperf
Synchronize libcap with LFS.

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

  • Property mode set to 100644
File size: 12.6 KB
RevLine 
[08254fc]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[08254fc]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[0aeb696]6
[edeebe2]7 <!ENTITY proftpd-download-http " ">
[de65afe]8 <!ENTITY proftpd-download-ftp "ftp://ftp.proftpd.org/distrib/source/proftpd-&proftpd-version;.tar.gz">
[10405e6]9 <!ENTITY proftpd-md5sum "13c6fd7ce320886adc371c81a3e23f07">
10 <!ENTITY proftpd-size "7.4 MB">
11 <!ENTITY proftpd-buildsize "33 MB">
[0af9bb66]12 <!ENTITY proftpd-time "0.3 SBU">
[08254fc]13]>
14
[1598426]15<sect1 id="proftpd" xreflabel="ProFTPD-&proftpd-version;">
[ce49e897]16 <?dbhtml filename="proftpd.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>ProFTPD-&proftpd-version;</title>
24
25 <indexterm zone="proftpd">
26 <primary sortas="a-proftpd">Proftpd</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to ProFTPD</title>
31
32 <para>The <application>ProFTPD</application> package contains a secure
33 and highly configurable FTP daemon. This is useful for serving large
34 file archives over a network.</para>
35
[2f62a072]36 &lfs75_checked;
[e5bc4ed]37
[ce49e897]38 <bridgehead renderas="sect3">Package Information</bridgehead>
39 <itemizedlist spacing="compact">
40 <listitem>
41 <para>Download (HTTP): <ulink url="&proftpd-download-http;"/></para>
42 </listitem>
43 <listitem>
44 <para>Download (FTP): <ulink url="&proftpd-download-ftp;"/></para>
45 </listitem>
46 <listitem>
47 <para>Download MD5 sum: &proftpd-md5sum;</para>
48 </listitem>
49 <listitem>
50 <para>Download size: &proftpd-size;</para>
51 </listitem>
52 <listitem>
53 <para>Estimated disk space required: &proftpd-buildsize;</para>
54 </listitem>
55 <listitem>
56 <para>Estimated build time: &proftpd-time;</para>
57 </listitem>
58 </itemizedlist>
59
60 <bridgehead renderas="sect3">ProFTPD Dependencies</bridgehead>
61
62 <bridgehead renderas="sect4">Optional</bridgehead>
[e5bc4ed]63 <para role="optional">
[56605b9]64 <xref linkend="libcap-pam"/>,
[2f62a072]65 <xref linkend="linux-pam"/>,
[5e0662d]66 <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
[2f62a072]67 <xref linkend="openssl"/>,
68 <xref linkend="pcre"/>,
69 <xref linkend="postgresql"/> and to run tests
[e5bc4ed]70 <xref linkend="check"/> and
71 <ulink url='http://search.cpan.org/~clemburg/Test-Unit-0.14/'>Test::Unit-0.14</ulink>
72 </para>
[ce49e897]73
[3cb0c57]74 <para condition="html" role="usernotes">User Notes:
75 <ulink url="&blfs-wiki;/proftpd"/></para>
76
[ce49e897]77 </sect2>
78
79 <sect2 role="installation">
80 <title>Installation of ProFTPD</title>
81
82 <para>For security reasons, you should install
83 <application>ProFTPD</application> using an unprivileged user and group.
84 As the <systemitem class="username">root</systemitem> user:</para>
85
[283bd88]86<screen role="root"><userinput>groupadd -g 46 proftpd &amp;&amp;
[13be1e2]87useradd -c proftpd -d /srv/ftp -g proftpd \
[283bd88]88 -s /usr/bin/proftpdshell -u 46 proftpd &amp;&amp;
89
[13be1e2]90install -v -d -m775 -o proftpd -g proftpd /srv/ftp &amp;&amp;
[283bd88]91ln -v -s /bin/false /usr/bin/proftpdshell &amp;&amp;
[13be1e2]92echo /usr/bin/proftpdshell &gt;&gt; /etc/shells</userinput></screen>
[08254fc]93
[4c288b0]94 <para>Install <application>ProFTPD</application> as an unprivileged user by
[ce49e897]95 running the following commands:</para>
[08254fc]96
[e5bc4ed]97<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run &amp;&amp;
[ce49e897]98make</userinput></screen>
[1728f4e]99
[e5bc4ed]100 <para>The tests for this package require a very old (2001) version of the
[601a838]101 Perl Module Test::Unit. Using the lastest version of this Test::Unit
[e5bc4ed]102 results in many failures (34/1089) although the program appears to run
103 well. The tests take a long time (38 minutes, not CPU dependent) and are
104 not recommended. To test the results anyway, issue: <command>make
105 check</command>.</para>
106
[ce49e897]107 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[08254fc]108
[ce49e897]109<screen role="root"><userinput>make install</userinput></screen>
[08254fc]110
[ce49e897]111 </sect2>
[08254fc]112
[ce49e897]113 <sect2 role="commands">
114 <title>Command Explanations</title>
[1728f4e]115
[ce49e897]116 <para><command>install -v -d -m775 -o proftpd -g proftpd
[13be1e2]117 /srv/ftp</command>: Create the home directory for
[ce49e897]118 <application>ProFTPD</application>.</para>
[1728f4e]119
[13be1e2]120 <para><command>ln -v -s /bin/false /usr/bin/proftpdshell</command>:
[4c288b0]121 Set the default shell as a link to an invalid shell.</para>
[1728f4e]122
[13be1e2]123 <para><command>echo /usr/bin/proftpdshell &gt;&gt;
[bfb7882]124 /etc/shells</command>: Fake a valid shell for compatibility purposes.</para>
[1728f4e]125
[ce49e897]126 <note>
[13be1e2]127 <para>The above two commands can be omitted if the following directive is
[ce49e897]128 placed in the configuration file:</para>
[1728f4e]129
[ce49e897]130<screen><literal>RequireValidShell off</literal></screen>
[1728f4e]131
[ce49e897]132 <para>By default, proftpd will require that users logging in have valid
133 shells. The RequireValidShell directive turns off this requirement. This
134 is only recommended if you are setting up your FTP server exclusively
135 for anonymous downloads.</para>
136 </note>
[08254fc]137
[2f62a072]138 <note>
139 <para>
140 Support for most of the dependency packages requires using options
141 passed to the <command>configure</command> script. View the output
142 from <command>./configure --help</command> for complete information
143 about enabling dependency packages.
144 </para>
145 </note>
[08254fc]146
[ce49e897]147 </sect2>
[08254fc]148
[ce49e897]149 <sect2 role="configuration">
150 <title>Configuring ProFTPD</title>
[1728f4e]151
[ce49e897]152 <sect3 id='proftpd-config'>
153 <title>Config Files</title>
[1728f4e]154
[ce49e897]155 <para><filename>/etc/proftpd.conf</filename></para>
[1728f4e]156
[ce49e897]157 <indexterm zone="proftpd proftpd-config">
158 <primary sortas="e-etc-proftpd">/etc/proftpd.conf</primary>
159 </indexterm>
[1586494]160
[ce49e897]161 </sect3>
[08254fc]162
[ce49e897]163 <sect3>
164 <title>Configuration Information</title>
[08254fc]165
[ce49e897]166 <para>This is a simple, download-only sample configuration. See the
167 <application>ProFTPD</application> documentation in
168 <filename class="directory">/usr/share/doc/proftpd</filename> and
169 consult the website at <ulink url="http://www.proftpd.org/"/> for
170 example configurations.</para>
[1728f4e]171
[8e37798]172<screen role="root"><?dbfo keep-together="auto"?><userinput>cat &gt; /etc/proftpd.conf &lt;&lt; "EOF"
[ce49e897]173<literal># This is a basic ProFTPD configuration file
[08254fc]174# It establishes a single server and a single anonymous login.
175
176ServerName "ProFTPD Default Installation"
177ServerType standalone
178DefaultServer on
179
180# Port 21 is the standard FTP port.
181Port 21
182# Umask 022 is a good standard umask to prevent new dirs and files
183# from being group and world writable.
184Umask 022
185
186# To prevent DoS attacks, set the maximum number of child processes
187# to 30. If you need to allow more than 30 concurrent connections
188# at once, simply increase this value. Note that this ONLY works
189# in standalone mode, in inetd mode you should use an inetd server
190# that allows you to limit maximum number of processes per service
[59048cd9]191<!--# (such as xinetd)-->
[08254fc]192MaxInstances 30
193
194# Set the user and group that the server normally runs at.
195User proftpd
196Group proftpd
197
[1586494]198# Normally, files should be overwritable.
[08254fc]199&lt;Directory /*&gt;
200 AllowOverwrite on
201&lt;/Directory&gt;
202
203# A basic anonymous configuration, no upload directories.
204&lt;Anonymous ~proftpd&gt;
205 User proftpd
206 Group proftpd
[1586494]207 # Clients should be able to login with "anonymous" as well as "proftpd"
[08254fc]208 UserAlias anonymous proftpd
209
210 # Limit the maximum number of anonymous logins
211 MaxClients 10
212
[1586494]213 # 'welcome.msg' should be displayed at login, and '.message' displayed
[08254fc]214 # in each newly chdired directory.
215 DisplayLogin welcome.msg
[e5bc4ed]216 DisplayChdir .message
[08254fc]217
218 # Limit WRITE everywhere in the anonymous chroot
219 &lt;Limit WRITE&gt;
220 DenyAll
221 &lt;/Limit&gt;
[ce49e897]222&lt;/Anonymous&gt;</literal>
223EOF</userinput></screen>
224
225 </sect3>
226
227 <sect3 id="proftpd-init">
228 <title>Boot Script</title>
229
230 <para>Install the <filename>/etc/rc.d/init.d/proftpd</filename> init
[5254d12]231 script included in the <xref linkend="bootscripts"/>
[ce49e897]232 package.</para>
233
234 <indexterm zone="proftpd proftpd-init">
235 <primary sortas="f-proftpd">proftpd</primary>
236 </indexterm>
237
238<screen role="root"><userinput>make install-proftpd</userinput></screen>
239
240 </sect3>
241
242 </sect2>
243
244 <sect2 role="content">
245 <title>Contents</title>
246
247 <segmentedlist>
248 <segtitle>Installed Programs</segtitle>
249 <segtitle>Installed Libraries</segtitle>
250 <segtitle>Installed Directory</segtitle>
251
252 <seglistitem>
[0d7900a]253 <seg>ftpcount, ftpdctl, ftpasswd, ftpmail, ftpquota, ftpscrub,
[10405e6]254 ftptop, ftpshut, ftpcount, ftpwho, and proftpd</seg>
[ce49e897]255 <seg>None</seg>
[2f62a072]256 <seg>/usr/lib/proftpd</seg>
[ce49e897]257 </seglistitem>
258 </segmentedlist>
259
260 <variablelist>
261 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
262 <?dbfo list-presentation="list"?>
263 <?dbhtml list-presentation="table"?>
264
265 <varlistentry id="proftpd-prog">
266 <term><command>proftpd</command></term>
267 <listitem>
268 <para>is the FTP daemon.</para>
269 <indexterm zone="proftpd proftpd-prog">
270 <primary sortas="b-proftpd">proftpd</primary>
271 </indexterm>
272 </listitem>
273 </varlistentry>
274
275 <varlistentry id="ftpcount">
276 <term><command>ftpcount</command></term>
277 <listitem>
278 <para>shows the current number of connections.</para>
279 <indexterm zone="proftpd ftpcount">
280 <primary sortas="b-ftpcount">ftpcount</primary>
281 </indexterm>
282 </listitem>
283 </varlistentry>
284
[e5bc4ed]285 <varlistentry id="ftpdctl">
286 <term><command>ftpdctl</command></term>
287 <listitem>
288 <para>is used to control the proftpd daemon while it is running.</para>
289 <indexterm zone="proftpd ftpdctl">
290 <primary sortas="b-ftpdctl">ftpdctl</primary>
291 </indexterm>
292 </listitem>
293 </varlistentry>
294
295 <varlistentry id="ftpasswd">
296 <term><command>ftpasswd</command></term>
297 <listitem>
[0d7900a]298 <para>is a Perl script designed to create and manage
[e5bc4ed]299 AuthUserFiles and AuthGroupFiles of the correct format for proftpd.</para>
300 <indexterm zone="proftpd ftpasswd">
301 <primary sortas="b-ftpasswd">ftpasswd</primary>
302 </indexterm>
303 </listitem>
304 </varlistentry>
305
306 <varlistentry id="ftpmail">
307 <term><command>ftpmail</command></term>
308 <listitem>
[601a838]309 <para>is a Perl script for sending email based on the proftpd TransferLog.
[e5bc4ed]310 </para>
311 <indexterm zone="proftpd ftpmail">
312 <primary sortas="b-ftpmail">ftpmail</primary>
313 </indexterm>
314 </listitem>
315 </varlistentry>
316
317 <varlistentry id="ftpquota">
318 <term><command>ftpquota</command></term>
319 <listitem>
[0d7900a]320 <para>is a Perl script designed to create and manage limits and tally
321 files for the mod_quotatab + mod_quotatab_file module combination
[e5bc4ed]322 for proftpd.</para>
323 <indexterm zone="proftpd ftpquota">
324 <primary sortas="b-ftpquota">ftpquota</primary>
325 </indexterm>
326 </listitem>
327 </varlistentry>
328
329 <varlistentry id="ftpscrub">
330 <term><command>ftpscrub</command></term>
331 <listitem>
332 <para>provides a way to scrub the scoreboard file on demand.</para>
333 <indexterm zone="proftpd ftpscrub">
334 <primary sortas="b-ftpscrub">ftpscrub</primary>
335 </indexterm>
336 </listitem>
337 </varlistentry>
338
[ce49e897]339 <varlistentry id="ftpshut">
340 <term><command>ftpshut</command></term>
341 <listitem>
342 <para>shuts down all <application>proftpd</application> servers
343 at a given time.</para>
344 <indexterm zone="proftpd ftpshut">
345 <primary sortas="b-ftpshut">ftpshut</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 <varlistentry id="ftptop">
351 <term><command>ftptop</command></term>
352 <listitem>
353 <para>displays running status on connections.</para>
354 <indexterm zone="proftpd ftptop">
355 <primary sortas="b-ftptop">ftptop</primary>
356 </indexterm>
357 </listitem>
358 </varlistentry>
359
360 <varlistentry id="ftpwho">
361 <term><command>ftpwho</command></term>
362 <listitem>
363 <para>shows current process information for each session.</para>
364 <indexterm zone="proftpd ftpwho">
365 <primary sortas="b-ftpwho">ftpwho</primary>
366 </indexterm>
367 </listitem>
368 </varlistentry>
369
370 </variablelist>
371
372 </sect2>
[1598426]373
374</sect1>
Note: See TracBrowser for help on using the repository browser.