source: server/major/proftpd.xml@ edeebe2

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.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 edeebe2 was edeebe2, checked in by Andrew Benton <andy@…>, 18 years ago

Dead links :o(

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

  • Property mode set to 100644
File size: 10.1 KB
RevLine 
[08254fc]1<?xml version="1.0" encoding="ISO-8859-1"?>
[ff769b8c]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
3 "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
[08254fc]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
[edeebe2]6<!-- Dead link
[08254fc]7 <!ENTITY proftpd-download-http "http://ftp.proftpd.org/distrib/source/proftpd-&proftpd-version;.tar.bz2">
[edeebe2]8-->
9 <!ENTITY proftpd-download-http " ">
[08254fc]10 <!ENTITY proftpd-download-ftp "ftp://ftp.proftpd.org/distrib/source/proftpd-&proftpd-version;.tar.bz2">
[7bc4c361]11 <!ENTITY proftpd-md5sum "5feb4a7348e12faefc25e34fd92efdd6">
[efded64]12 <!ENTITY proftpd-size "901 KB">
13 <!ENTITY proftpd-buildsize "7.3 MB">
[08254fc]14 <!ENTITY proftpd-time "0.27 SBU">
15]>
16
[1598426]17<sect1 id="proftpd" xreflabel="ProFTPD-&proftpd-version;">
[ce49e897]18 <?dbhtml filename="proftpd.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
[a6ac43b]23 <keywordset>
24 <keyword role="package">proftpd-&proftpd-version;.tar</keyword>
[2a5310e8]25 <keyword role="ftpdir">proftpd</keyword>
[a6ac43b]26 </keywordset>
[ce49e897]27 </sect1info>
28
29 <title>ProFTPD-&proftpd-version;</title>
30
31 <indexterm zone="proftpd">
32 <primary sortas="a-proftpd">Proftpd</primary>
33 </indexterm>
34
35 <sect2 role="package">
36 <title>Introduction to ProFTPD</title>
37
38 <para>The <application>ProFTPD</application> package contains a secure
39 and highly configurable FTP daemon. This is useful for serving large
40 file archives over a network.</para>
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>Download (HTTP): <ulink url="&proftpd-download-http;"/></para>
46 </listitem>
47 <listitem>
48 <para>Download (FTP): <ulink url="&proftpd-download-ftp;"/></para>
49 </listitem>
50 <listitem>
51 <para>Download MD5 sum: &proftpd-md5sum;</para>
52 </listitem>
53 <listitem>
54 <para>Download size: &proftpd-size;</para>
55 </listitem>
56 <listitem>
57 <para>Estimated disk space required: &proftpd-buildsize;</para>
58 </listitem>
59 <listitem>
60 <para>Estimated build time: &proftpd-time;</para>
61 </listitem>
62 </itemizedlist>
63
64 <bridgehead renderas="sect3">ProFTPD Dependencies</bridgehead>
65
66 <bridgehead renderas="sect4">Optional</bridgehead>
[a6ac43b]67 <para role="optional"><xref linkend="linux-pam"/></para>
[ce49e897]68
[3cb0c57]69 <para condition="html" role="usernotes">User Notes:
70 <ulink url="&blfs-wiki;/proftpd"/></para>
71
[ce49e897]72 </sect2>
73
74 <sect2 role="installation">
75 <title>Installation of ProFTPD</title>
76
77 <para>For security reasons, you should install
78 <application>ProFTPD</application> using an unprivileged user and group.
79 As the <systemitem class="username">root</systemitem> user:</para>
80
[b785ab29]81<screen role="root"><userinput>groupadd -g 46 proftpd &amp;&amp;
[13be1e2]82useradd -c proftpd -d /srv/ftp -g proftpd \
83 -s /usr/bin/proftpdshell -u 46 proftpd &amp;&amp;
84install -v -d -m775 -o proftpd -g proftpd /srv/ftp &amp;&amp;
85ln -v -s /bin/false /usr/bin/proftpdshell &amp;&amp;
86echo /usr/bin/proftpdshell &gt;&gt; /etc/shells</userinput></screen>
[08254fc]87
[4c288b0]88 <para>Install <application>ProFTPD</application> as an unprivileged user by
[ce49e897]89 running the following commands:</para>
[08254fc]90
[13be1e2]91<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
[39373956]92 --localstatedir=/var/run &amp;&amp;
[ce49e897]93make</userinput></screen>
[1728f4e]94
[ce49e897]95 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[08254fc]96
[ce49e897]97<screen role="root"><userinput>make install</userinput></screen>
[08254fc]98
[ce49e897]99 </sect2>
[08254fc]100
[ce49e897]101 <sect2 role="commands">
102 <title>Command Explanations</title>
[1728f4e]103
[ce49e897]104 <para><command>install -v -d -m775 -o proftpd -g proftpd
[13be1e2]105 /srv/ftp</command>: Create the home directory for
[ce49e897]106 <application>ProFTPD</application>.</para>
[1728f4e]107
[13be1e2]108 <para><command>ln -v -s /bin/false /usr/bin/proftpdshell</command>:
[4c288b0]109 Set the default shell as a link to an invalid shell.</para>
[1728f4e]110
[13be1e2]111 <para><command>echo /usr/bin/proftpdshell &gt;&gt;
[bfb7882]112 /etc/shells</command>: Fake a valid shell for compatibility purposes.</para>
[1728f4e]113
[ce49e897]114 <note>
[13be1e2]115 <para>The above two commands can be omitted if the following directive is
[ce49e897]116 placed in the configuration file:</para>
[1728f4e]117
[ce49e897]118<screen><literal>RequireValidShell off</literal></screen>
[1728f4e]119
[ce49e897]120 <para>By default, proftpd will require that users logging in have valid
121 shells. The RequireValidShell directive turns off this requirement. This
122 is only recommended if you are setting up your FTP server exclusively
123 for anonymous downloads.</para>
124 </note>
[08254fc]125
[ce49e897]126 <para><parameter>--sysconfdir=/etc</parameter>: This prevents the
127 configuration files from going to
128 <filename class="directory">/usr/etc</filename>.</para>
[08254fc]129
[ce49e897]130 <para><parameter>--localstatedir=/var/run</parameter>:
131 This uses <filename class="directory">/var/run</filename> instead of
132 <filename class="directory">/usr/var</filename> for lock files.</para>
[08254fc]133
[ce49e897]134 </sect2>
[08254fc]135
[ce49e897]136 <sect2 role="configuration">
137 <title>Configuring ProFTPD</title>
[1728f4e]138
[ce49e897]139 <sect3 id='proftpd-config'>
140 <title>Config Files</title>
[1728f4e]141
[ce49e897]142 <para><filename>/etc/proftpd.conf</filename></para>
[1728f4e]143
[ce49e897]144 <indexterm zone="proftpd proftpd-config">
145 <primary sortas="e-etc-proftpd">/etc/proftpd.conf</primary>
146 </indexterm>
[1586494]147
[ce49e897]148 </sect3>
[08254fc]149
[ce49e897]150 <sect3>
151 <title>Configuration Information</title>
[08254fc]152
[ce49e897]153 <para>This is a simple, download-only sample configuration. See the
154 <application>ProFTPD</application> documentation in
155 <filename class="directory">/usr/share/doc/proftpd</filename> and
156 consult the website at <ulink url="http://www.proftpd.org/"/> for
157 example configurations.</para>
[1728f4e]158
[ce49e897]159<screen role="root"><userinput>cat &gt; /etc/proftpd.conf &lt;&lt; "EOF"
160<literal># This is a basic ProFTPD configuration file
[08254fc]161# It establishes a single server and a single anonymous login.
162
163ServerName "ProFTPD Default Installation"
164ServerType standalone
165DefaultServer on
166
167# Port 21 is the standard FTP port.
168Port 21
169# Umask 022 is a good standard umask to prevent new dirs and files
170# from being group and world writable.
171Umask 022
172
173# To prevent DoS attacks, set the maximum number of child processes
174# to 30. If you need to allow more than 30 concurrent connections
175# at once, simply increase this value. Note that this ONLY works
176# in standalone mode, in inetd mode you should use an inetd server
177# that allows you to limit maximum number of processes per service
178# (such as xinetd)
179MaxInstances 30
180
181# Set the user and group that the server normally runs at.
182User proftpd
183Group proftpd
184
[1586494]185# Normally, files should be overwritable.
[08254fc]186&lt;Directory /*&gt;
187 AllowOverwrite on
188&lt;/Directory&gt;
189
190# A basic anonymous configuration, no upload directories.
191&lt;Anonymous ~proftpd&gt;
192 User proftpd
193 Group proftpd
[1586494]194 # Clients should be able to login with "anonymous" as well as "proftpd"
[08254fc]195 UserAlias anonymous proftpd
196
197 # Limit the maximum number of anonymous logins
198 MaxClients 10
199
[1586494]200 # 'welcome.msg' should be displayed at login, and '.message' displayed
[08254fc]201 # in each newly chdired directory.
202 DisplayLogin welcome.msg
203 DisplayFirstChdir .message
204
205 # Limit WRITE everywhere in the anonymous chroot
206 &lt;Limit WRITE&gt;
207 DenyAll
208 &lt;/Limit&gt;
[ce49e897]209&lt;/Anonymous&gt;</literal>
210EOF</userinput></screen>
211
212 </sect3>
213
214 <sect3 id="proftpd-init">
215 <title>Boot Script</title>
216
217 <para>Install the <filename>/etc/rc.d/init.d/proftpd</filename> init
[5254d12]218 script included in the <xref linkend="bootscripts"/>
[ce49e897]219 package.</para>
220
221 <indexterm zone="proftpd proftpd-init">
222 <primary sortas="f-proftpd">proftpd</primary>
223 </indexterm>
224
225<screen role="root"><userinput>make install-proftpd</userinput></screen>
226
227 </sect3>
228
229 </sect2>
230
231 <sect2 role="content">
232 <title>Contents</title>
233
234 <segmentedlist>
235 <segtitle>Installed Programs</segtitle>
236 <segtitle>Installed Libraries</segtitle>
237 <segtitle>Installed Directory</segtitle>
238
239 <seglistitem>
240 <seg>ftpcount, ftpdctl, ftptop, ftpwho, ftpshut, proftpd</seg>
241 <seg>None</seg>
242 <seg>/var/run/proftpd</seg>
243 </seglistitem>
244 </segmentedlist>
245
246 <variablelist>
247 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
248 <?dbfo list-presentation="list"?>
249 <?dbhtml list-presentation="table"?>
250
251 <varlistentry id="proftpd-prog">
252 <term><command>proftpd</command></term>
253 <listitem>
254 <para>is the FTP daemon.</para>
255 <indexterm zone="proftpd proftpd-prog">
256 <primary sortas="b-proftpd">proftpd</primary>
257 </indexterm>
258 </listitem>
259 </varlistentry>
260
261 <varlistentry id="ftpcount">
262 <term><command>ftpcount</command></term>
263 <listitem>
264 <para>shows the current number of connections.</para>
265 <indexterm zone="proftpd ftpcount">
266 <primary sortas="b-ftpcount">ftpcount</primary>
267 </indexterm>
268 </listitem>
269 </varlistentry>
270
271 <varlistentry id="ftpshut">
272 <term><command>ftpshut</command></term>
273 <listitem>
274 <para>shuts down all <application>proftpd</application> servers
275 at a given time.</para>
276 <indexterm zone="proftpd ftpshut">
277 <primary sortas="b-ftpshut">ftpshut</primary>
278 </indexterm>
279 </listitem>
280 </varlistentry>
281
282 <varlistentry id="ftptop">
283 <term><command>ftptop</command></term>
284 <listitem>
285 <para>displays running status on connections.</para>
286 <indexterm zone="proftpd ftptop">
287 <primary sortas="b-ftptop">ftptop</primary>
288 </indexterm>
289 </listitem>
290 </varlistentry>
291
292 <varlistentry id="ftpwho">
293 <term><command>ftpwho</command></term>
294 <listitem>
295 <para>shows current process information for each session.</para>
296 <indexterm zone="proftpd ftpwho">
297 <primary sortas="b-ftpwho">ftpwho</primary>
298 </indexterm>
299 </listitem>
300 </varlistentry>
301
302 </variablelist>
303
304 </sect2>
[1598426]305
306</sect1>
Note: See TracBrowser for help on using the repository browser.