source: content/web/proftpd.xml@ efded64

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 efded64 was efded64, checked in by Larry Lawrence <larry@…>, 20 years ago

update to fluxbox-0.9.10 and proftpd-1.2.10

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

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