source: content/web/proftpd.xml@ 7bc4c361

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 7bc4c361 was 7bc4c361, checked in by Randy McMurchy <randy@…>, 19 years ago

Added md5sums to Chapter 24 package instructions

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

  • Property mode set to 100644
File size: 7.1 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 proftpd-download-http "http://ftp.proftpd.org/distrib/source/proftpd-&proftpd-version;.tar.bz2">
8 <!ENTITY proftpd-download-ftp "ftp://ftp.proftpd.org/distrib/source/proftpd-&proftpd-version;.tar.bz2">
9 <!ENTITY proftpd-md5sum "5feb4a7348e12faefc25e34fd92efdd6">
10 <!ENTITY proftpd-size "901 KB">
11 <!ENTITY proftpd-buildsize "7.3 MB">
12 <!ENTITY proftpd-time "0.27 SBU">
13]>
14
15<sect1 id="proftpd" xreflabel="ProFTPD-&proftpd-version;">
16<sect1info>
17<othername>$LastChangedBy$</othername>
18<date>$Date$</date>
19</sect1info>
20<?dbhtml filename="proftpd.html"?>
21<title><application>Pro<acronym>FTP</acronym>D</application>-&proftpd-version;
22</title>
23
24<sect2>
25<title>Introduction to
26<application>Pro<acronym>FTP</acronym>D</application></title>
27
28<para>The <application>Pro<acronym>FTP</acronym>D</application> package
29contains a secure and highly configurable <acronym>FTP</acronym> daemon. This
30is useful for serving large file archives over a network.</para>
31
32<sect3><title>Package information</title>
33<itemizedlist spacing='compact'>
34<listitem><para>Download (HTTP):
35<ulink url="&proftpd-download-http;"/></para></listitem>
36<listitem><para>Download (FTP):
37<ulink url="&proftpd-download-ftp;"/></para></listitem>
38<listitem><para>Download MD5 sum: &proftpd-md5sum;</para></listitem>
39<listitem><para>Download size: &proftpd-size;</para></listitem>
40<listitem><para>Estimated disk space required:
41&proftpd-buildsize;</para></listitem>
42<listitem><para>Estimated build time:
43&proftpd-time;</para></listitem></itemizedlist>
44</sect3>
45
46<sect3><title><application>Pro<acronym>FTP</acronym>D</application>
47dependencies</title>
48<sect4><title>Optional</title>
49<para><xref linkend="Linux_PAM"/></para>
50</sect4>
51</sect3>
52
53</sect2>
54
55<sect2>
56<title>Installation of
57<application>Pro<acronym>FTP</acronym>D</application></title>
58
59<para>For security reasons, running
60<application>Pro<acronym>FTP</acronym>D</application> as an unprivileged user
61and group using its own login shell is encouraged.</para>
62
63<screen><userinput><command>groupadd proftpd &amp;&amp;
64ln -s false /usr/lib/proftpd/proftpdshell &amp;&amp;
65echo /usr/lib/proftpd/proftpdshell &gt;&gt; /etc/shells &amp;&amp;
66useradd -c proftpd -d /home/ftp -g proftpd \
67 -s /usr/lib/proftpd/proftpdshell proftpd</command>
68</userinput></screen>
69
70<para>Install <application>Pro<acronym>FTP</acronym>D</application> by running
71the following commands:</para>
72
73<screen><userinput><command>install_user=proftpd install_group=proftpd \
74 ./configure --prefix=/usr --sysconfdir=/etc \
75 --localstatedir=/var/run &amp;&amp;
76make &amp;&amp;
77make install </command></userinput></screen>
78
79</sect2>
80
81<sect2>
82<title>Command explanations</title>
83
84<para><parameter>install_user=proftpd install_group=proftpd</parameter>:
85Specify the user and group identity for
86<application>Pro<acronym>FTP</acronym>D</application>.</para>
87
88<para><parameter>--sysconfdir=/etc</parameter>:
89This prevents the configuration files from going to
90<filename class="directory">/usr/etc</filename>.</para>
91
92<para><parameter>--localstatedir=/var/run</parameter>:
93This uses <filename class="directory">/var/run</filename> instead of
94<filename class="directory">/usr/var</filename> for lock files.</para>
95
96</sect2>
97
98<sect2>
99<title>Configuring <application>Pro<acronym>FTP</acronym>D</application></title>
100
101<sect3><title>proftpd init.d script</title>
102<para>Install the <filename>/etc/rc.d/init.d/proftpd</filename> init script
103included in the <xref linkend="intro-important-bootscripts"/> package.</para>
104
105<screen><userinput><command>make install-proftpd</command></userinput></screen>
106
107</sect3>
108
109<sect3><title>Config files</title>
110<para><filename>/etc/proftpd.conf</filename></para>
111</sect3>
112
113<sect3><title>Configuration information</title>
114<para>This is a simple, download-only sample configuration. See the
115<application>Pro<acronym>FTP</acronym>D</application> documentation in
116<filename class="directory">/usr/share/doc/proftpd</filename> and consult the
117website at <ulink url="http://www.proftpd.org/"/> for example
118configurations.</para>
119
120<screen><userinput><command>cat &gt; /etc/proftpd.conf &lt;&lt; "EOF"</command>
121# This is a basic ProFTPD configuration file
122# It establishes a single server and a single anonymous login.
123
124ServerName "ProFTPD Default Installation"
125ServerType standalone
126DefaultServer on
127
128# Port 21 is the standard FTP port.
129Port 21
130# Umask 022 is a good standard umask to prevent new dirs and files
131# from being group and world writable.
132Umask 022
133
134# To prevent DoS attacks, set the maximum number of child processes
135# to 30. If you need to allow more than 30 concurrent connections
136# at once, simply increase this value. Note that this ONLY works
137# in standalone mode, in inetd mode you should use an inetd server
138# that allows you to limit maximum number of processes per service
139# (such as xinetd)
140MaxInstances 30
141
142# Set the user and group that the server normally runs at.
143User proftpd
144Group proftpd
145
146# Normally, files should be overwritable.
147&lt;Directory /*&gt;
148 AllowOverwrite on
149&lt;/Directory&gt;
150
151# A basic anonymous configuration, no upload directories.
152&lt;Anonymous ~proftpd&gt;
153 User proftpd
154 Group proftpd
155 # Clients should be able to login with "anonymous" as well as "proftpd"
156 UserAlias anonymous proftpd
157
158 # Limit the maximum number of anonymous logins
159 MaxClients 10
160
161 # 'welcome.msg' should be displayed at login, and '.message' displayed
162 # in each newly chdired directory.
163 DisplayLogin welcome.msg
164 DisplayFirstChdir .message
165
166 # Limit WRITE everywhere in the anonymous chroot
167 &lt;Limit WRITE&gt;
168 DenyAll
169 &lt;/Limit&gt;
170&lt;/Anonymous&gt;
171<command>EOF</command></userinput></screen></sect3>
172
173</sect2>
174
175<sect2>
176<title>Contents</title>
177
178<para>The <application>Pro<acronym>FTP</acronym>D</application> package contains
179<command>ftpcount</command>, <command>ftpshut</command>,
180<command>ftptop</command>, <command>ftpwho</command> and
181<command>proftpd</command>.</para>
182
183</sect2>
184
185<sect2><title>Description</title>
186
187<sect3><title>ftpcount</title>
188<para><command>ftpcount</command> shows the current number of
189connections.</para></sect3>
190
191<sect3><title>ftpshut</title>
192<para><command>ftpshut</command> shuts down all <command>proftpd</command>
193servers at a given time.</para></sect3>
194
195<sect3><title>ftptop</title>
196<para><command>ftptop</command> displays running status on
197connections.</para></sect3>
198
199<sect3><title>ftpwho</title>
200<para><command>ftpwho</command> shows current process information for
201each session.</para></sect3>
202
203<sect3><title>proftpd</title>
204<para><command>proftpd</command> is the <acronym>FTP</acronym>
205daemon.</para></sect3>
206
207</sect2>
208
209</sect1>
210
Note: See TracBrowser for help on using the repository browser.