source: server/major/proftpd.xml@ 2f62a072

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 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 2f62a072 was 2f62a072, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

Some tags anfixes, thanks to Armin K.

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

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