source: content/web/proftpd.xml@ f62b122b

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

Shortened line lengths in instructions through Chapter 32 (700 pages)

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

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