source: server/major/proftpd-systemd.xml@ e680d14a

systemd-11177
Last change on this file since e680d14a was e680d14a, checked in by Krejzi <krejzi@…>, 10 years ago

Checks and fixes.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/branches/systemd@14078 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 13.0 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 "aff1bff40e675244d72c4667f203e5bb">
10 <!ENTITY proftpd-size "7.2 MB">
11 <!ENTITY proftpd-buildsize "34 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 &lfs76_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="linux-pam"/>,
65 <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
66 <xref linkend="openssl"/>,
67 <xref linkend="pcre"/>,
68 <xref linkend="postgresql"/> and to run tests:
69 <xref linkend="check"/> and
70 <ulink url='http://search.cpan.org/~clemburg/Test-Unit-0.14/'>Test::Unit-0.14</ulink>
71 </para>
72
73 <para condition="html" role="usernotes">User Notes:
74 <ulink url="&blfs-wiki;/proftpd"/></para>
75
76 </sect2>
77
78 <sect2 role="installation">
79 <title>Installation of ProFTPD</title>
80
81 <para>For security reasons, you should install
82 <application>ProFTPD</application> using an unprivileged user and group.
83 As the <systemitem class="username">root</systemitem> user:</para>
84
85<screen role="root"><userinput>groupadd -g 46 proftpd &amp;&amp;
86useradd -c proftpd -d /srv/ftp -g proftpd \
87 -s /usr/bin/proftpdshell -u 46 proftpd &amp;&amp;
88
89install -v -d -m775 -o proftpd -g proftpd /srv/ftp &amp;&amp;
90ln -sfv /bin/false /usr/bin/proftpdshell &amp;&amp;
91echo /usr/bin/proftpdshell &gt;&gt; /etc/shells</userinput></screen>
92
93 <para>Install <application>ProFTPD</application> as an unprivileged user by
94 running the following commands:</para>
95
96<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run &amp;&amp;
97make</userinput></screen>
98
99 <para>The tests for this package require a very old (2001) version of the
100 Perl Module Test::Unit. Even when using that version of Test::Unit, there
101 are many failures (41/1397) although the program appears to run
102 well. The tests take a long time (45 minutes, not CPU dependent) and are
103 not recommended. To test the results anyway, add the switch: <parameter>
104 --enable-tests</parameter> to the <command>configure</command>, and
105 issue: <command>make check</command>. If the tests are run with root
106 privileges, more tests are run, but there are more failures.</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# To cause every FTP user to be "jailed" (chrooted) into their home
200# directory, uncomment this line.
201#DefaultRoot ~
202
203
204# Normally, files should be overwritable.
205&lt;Directory /*&gt;
206 AllowOverwrite on
207&lt;/Directory&gt;
208
209# A basic anonymous configuration, no upload directories.
210&lt;Anonymous ~proftpd&gt;
211 User proftpd
212 Group proftpd
213 # Clients should be able to login with "anonymous" as well as "proftpd"
214 UserAlias anonymous proftpd
215
216 # Limit the maximum number of anonymous logins
217 MaxClients 10
218
219 # 'welcome.msg' should be displayed at login, and '.message' displayed
220 # in each newly chdired directory.
221 DisplayLogin welcome.msg
222 DisplayChdir .message
223
224 # Limit WRITE everywhere in the anonymous chroot
225 &lt;Limit WRITE&gt;
226 DenyAll
227 &lt;/Limit&gt;
228&lt;/Anonymous&gt;</literal>
229EOF</userinput></screen>
230
231 </sect3>
232
233 <sect3 id="proftpd-init">
234 <title>Systemd Units</title>
235
236 <para>
237 To start the <command>proftpd</command> daemon at boot,
238 install the systemd unit from the <xref linkend="bootscripts"/>
239 package by running the following command as the
240 <systemitem class="username">root</systemitem> user:
241 </para>
242
243 <indexterm zone="proftpd proftpd-init">
244 <primary sortas="f-proftpd">proftpd</primary>
245 </indexterm>
246
247<screen role="root"><userinput>make install-proftpd</userinput></screen>
248
249 </sect3>
250
251 </sect2>
252
253 <sect2 role="content">
254 <title>Contents</title>
255
256 <segmentedlist>
257 <segtitle>Installed Programs</segtitle>
258 <segtitle>Installed Libraries</segtitle>
259 <segtitle>Installed Directory</segtitle>
260
261 <seglistitem>
262 <seg>ftpcount, ftpdctl, ftpasswd, ftpmail, ftpquota, ftpscrub,
263 ftptop, ftpshut, ftpcount, ftpwho, and proftpd</seg>
264 <seg>None</seg>
265 <seg>/usr/lib/proftpd</seg>
266 </seglistitem>
267 </segmentedlist>
268
269 <variablelist>
270 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
271 <?dbfo list-presentation="list"?>
272 <?dbhtml list-presentation="table"?>
273
274 <varlistentry id="proftpd-prog">
275 <term><command>proftpd</command></term>
276 <listitem>
277 <para>is the FTP daemon.</para>
278 <indexterm zone="proftpd proftpd-prog">
279 <primary sortas="b-proftpd">proftpd</primary>
280 </indexterm>
281 </listitem>
282 </varlistentry>
283
284 <varlistentry id="ftpcount">
285 <term><command>ftpcount</command></term>
286 <listitem>
287 <para>shows the current number of connections.</para>
288 <indexterm zone="proftpd ftpcount">
289 <primary sortas="b-ftpcount">ftpcount</primary>
290 </indexterm>
291 </listitem>
292 </varlistentry>
293
294 <varlistentry id="ftpdctl">
295 <term><command>ftpdctl</command></term>
296 <listitem>
297 <para>is used to control the proftpd daemon while it is running.</para>
298 <indexterm zone="proftpd ftpdctl">
299 <primary sortas="b-ftpdctl">ftpdctl</primary>
300 </indexterm>
301 </listitem>
302 </varlistentry>
303
304 <varlistentry id="ftpasswd">
305 <term><command>ftpasswd</command></term>
306 <listitem>
307 <para>is a Perl script designed to create and manage
308 AuthUserFiles and AuthGroupFiles of the correct format for proftpd.</para>
309 <indexterm zone="proftpd ftpasswd">
310 <primary sortas="b-ftpasswd">ftpasswd</primary>
311 </indexterm>
312 </listitem>
313 </varlistentry>
314
315 <varlistentry id="ftpmail">
316 <term><command>ftpmail</command></term>
317 <listitem>
318 <para>is a Perl script for sending email based on the proftpd TransferLog.
319 </para>
320 <indexterm zone="proftpd ftpmail">
321 <primary sortas="b-ftpmail">ftpmail</primary>
322 </indexterm>
323 </listitem>
324 </varlistentry>
325
326 <varlistentry id="ftpquota">
327 <term><command>ftpquota</command></term>
328 <listitem>
329 <para>is a Perl script designed to create and manage limits and tally
330 files for the mod_quotatab + mod_quotatab_file module combination
331 for proftpd.</para>
332 <indexterm zone="proftpd ftpquota">
333 <primary sortas="b-ftpquota">ftpquota</primary>
334 </indexterm>
335 </listitem>
336 </varlistentry>
337
338 <varlistentry id="ftpscrub">
339 <term><command>ftpscrub</command></term>
340 <listitem>
341 <para>provides a way to scrub the scoreboard file on demand.</para>
342 <indexterm zone="proftpd ftpscrub">
343 <primary sortas="b-ftpscrub">ftpscrub</primary>
344 </indexterm>
345 </listitem>
346 </varlistentry>
347
348 <varlistentry id="ftpshut">
349 <term><command>ftpshut</command></term>
350 <listitem>
351 <para>shuts down all <application>proftpd</application> servers
352 at a given time.</para>
353 <indexterm zone="proftpd ftpshut">
354 <primary sortas="b-ftpshut">ftpshut</primary>
355 </indexterm>
356 </listitem>
357 </varlistentry>
358
359 <varlistentry id="ftptop">
360 <term><command>ftptop</command></term>
361 <listitem>
362 <para>displays running status on connections.</para>
363 <indexterm zone="proftpd ftptop">
364 <primary sortas="b-ftptop">ftptop</primary>
365 </indexterm>
366 </listitem>
367 </varlistentry>
368
369 <varlistentry id="ftpwho">
370 <term><command>ftpwho</command></term>
371 <listitem>
372 <para>shows current process information for each session.</para>
373 <indexterm zone="proftpd ftpwho">
374 <primary sortas="b-ftpwho">ftpwho</primary>
375 </indexterm>
376 </listitem>
377 </varlistentry>
378
379 </variablelist>
380
381 </sect2>
382
383</sect1>
Note: See TracBrowser for help on using the repository browser.