[08254fc] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[6732c094] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[08254fc] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
[0aeb696] | 6 |
|
---|
[edeebe2] | 7 | <!ENTITY proftpd-download-http " ">
|
---|
[de65afe] | 8 | <!ENTITY proftpd-download-ftp "ftp://ftp.proftpd.org/distrib/source/proftpd-&proftpd-version;.tar.gz">
|
---|
[10405e6] | 9 | <!ENTITY proftpd-md5sum "13c6fd7ce320886adc371c81a3e23f07">
|
---|
| 10 | <!ENTITY proftpd-size "7.4 MB">
|
---|
| 11 | <!ENTITY proftpd-buildsize "33 MB">
|
---|
[0af9bb66] | 12 | <!ENTITY proftpd-time "0.3 SBU">
|
---|
[08254fc] | 13 | ]>
|
---|
| 14 |
|
---|
[1598426] | 15 | <sect1 id="proftpd" xreflabel="ProFTPD-&proftpd-version;">
|
---|
[ce49e897] | 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 |
|
---|
[283bd88] | 36 | &lfs74_checked;
|
---|
[e5bc4ed] | 37 |
|
---|
[ce49e897] | 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>
|
---|
[e5bc4ed] | 63 | <para role="optional">
|
---|
| 64 | <xref linkend="linux-pam"/> and to run tests
|
---|
| 65 | <xref linkend="check"/> and
|
---|
| 66 | <ulink url='http://search.cpan.org/~clemburg/Test-Unit-0.14/'>Test::Unit-0.14</ulink>
|
---|
| 67 | </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 |
|
---|
[283bd88] | 81 | <screen role="root"><userinput>groupadd -g 46 proftpd &&
|
---|
[13be1e2] | 82 | useradd -c proftpd -d /srv/ftp -g proftpd \
|
---|
[283bd88] | 83 | -s /usr/bin/proftpdshell -u 46 proftpd &&
|
---|
| 84 |
|
---|
[13be1e2] | 85 | install -v -d -m775 -o proftpd -g proftpd /srv/ftp &&
|
---|
[283bd88] | 86 | ln -v -s /bin/false /usr/bin/proftpdshell &&
|
---|
[13be1e2] | 87 | echo /usr/bin/proftpdshell >> /etc/shells</userinput></screen>
|
---|
[08254fc] | 88 |
|
---|
[4c288b0] | 89 | <para>Install <application>ProFTPD</application> as an unprivileged user by
|
---|
[ce49e897] | 90 | running the following commands:</para>
|
---|
[08254fc] | 91 |
|
---|
[e5bc4ed] | 92 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run &&
|
---|
[ce49e897] | 93 | make</userinput></screen>
|
---|
[1728f4e] | 94 |
|
---|
[e5bc4ed] | 95 | <para>The tests for this package require a very old (2001) version of the
|
---|
[601a838] | 96 | Perl Module Test::Unit. Using the lastest version of this Test::Unit
|
---|
[e5bc4ed] | 97 | results in many failures (34/1089) although the program appears to run
|
---|
| 98 | well. The tests take a long time (38 minutes, not CPU dependent) and are
|
---|
| 99 | not recommended. To test the results anyway, issue: <command>make
|
---|
| 100 | check</command>.</para>
|
---|
| 101 |
|
---|
[ce49e897] | 102 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[08254fc] | 103 |
|
---|
[ce49e897] | 104 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[08254fc] | 105 |
|
---|
[ce49e897] | 106 | </sect2>
|
---|
[08254fc] | 107 |
|
---|
[ce49e897] | 108 | <sect2 role="commands">
|
---|
| 109 | <title>Command Explanations</title>
|
---|
[1728f4e] | 110 |
|
---|
[ce49e897] | 111 | <para><command>install -v -d -m775 -o proftpd -g proftpd
|
---|
[13be1e2] | 112 | /srv/ftp</command>: Create the home directory for
|
---|
[ce49e897] | 113 | <application>ProFTPD</application>.</para>
|
---|
[1728f4e] | 114 |
|
---|
[13be1e2] | 115 | <para><command>ln -v -s /bin/false /usr/bin/proftpdshell</command>:
|
---|
[4c288b0] | 116 | Set the default shell as a link to an invalid shell.</para>
|
---|
[1728f4e] | 117 |
|
---|
[13be1e2] | 118 | <para><command>echo /usr/bin/proftpdshell >>
|
---|
[bfb7882] | 119 | /etc/shells</command>: Fake a valid shell for compatibility purposes.</para>
|
---|
[1728f4e] | 120 |
|
---|
[ce49e897] | 121 | <note>
|
---|
[13be1e2] | 122 | <para>The above two commands can be omitted if the following directive is
|
---|
[ce49e897] | 123 | placed in the configuration file:</para>
|
---|
[1728f4e] | 124 |
|
---|
[ce49e897] | 125 | <screen><literal>RequireValidShell off</literal></screen>
|
---|
[1728f4e] | 126 |
|
---|
[ce49e897] | 127 | <para>By default, proftpd will require that users logging in have valid
|
---|
| 128 | shells. The RequireValidShell directive turns off this requirement. This
|
---|
| 129 | is only recommended if you are setting up your FTP server exclusively
|
---|
| 130 | for anonymous downloads.</para>
|
---|
| 131 | </note>
|
---|
[08254fc] | 132 |
|
---|
[ce49e897] | 133 | <para><parameter>--sysconfdir=/etc</parameter>: This prevents the
|
---|
| 134 | configuration files from going to
|
---|
| 135 | <filename class="directory">/usr/etc</filename>.</para>
|
---|
[08254fc] | 136 |
|
---|
[ce49e897] | 137 | <para><parameter>--localstatedir=/var/run</parameter>:
|
---|
| 138 | This uses <filename class="directory">/var/run</filename> instead of
|
---|
| 139 | <filename class="directory">/usr/var</filename> for lock files.</para>
|
---|
[08254fc] | 140 |
|
---|
[ce49e897] | 141 | </sect2>
|
---|
[08254fc] | 142 |
|
---|
[ce49e897] | 143 | <sect2 role="configuration">
|
---|
| 144 | <title>Configuring ProFTPD</title>
|
---|
[1728f4e] | 145 |
|
---|
[ce49e897] | 146 | <sect3 id='proftpd-config'>
|
---|
| 147 | <title>Config Files</title>
|
---|
[1728f4e] | 148 |
|
---|
[ce49e897] | 149 | <para><filename>/etc/proftpd.conf</filename></para>
|
---|
[1728f4e] | 150 |
|
---|
[ce49e897] | 151 | <indexterm zone="proftpd proftpd-config">
|
---|
| 152 | <primary sortas="e-etc-proftpd">/etc/proftpd.conf</primary>
|
---|
| 153 | </indexterm>
|
---|
[1586494] | 154 |
|
---|
[ce49e897] | 155 | </sect3>
|
---|
[08254fc] | 156 |
|
---|
[ce49e897] | 157 | <sect3>
|
---|
| 158 | <title>Configuration Information</title>
|
---|
[08254fc] | 159 |
|
---|
[ce49e897] | 160 | <para>This is a simple, download-only sample configuration. See the
|
---|
| 161 | <application>ProFTPD</application> documentation in
|
---|
| 162 | <filename class="directory">/usr/share/doc/proftpd</filename> and
|
---|
| 163 | consult the website at <ulink url="http://www.proftpd.org/"/> for
|
---|
| 164 | example configurations.</para>
|
---|
[1728f4e] | 165 |
|
---|
[8e37798] | 166 | <screen role="root"><?dbfo keep-together="auto"?><userinput>cat > /etc/proftpd.conf << "EOF"
|
---|
[ce49e897] | 167 | <literal># This is a basic ProFTPD configuration file
|
---|
[08254fc] | 168 | # It establishes a single server and a single anonymous login.
|
---|
| 169 |
|
---|
| 170 | ServerName "ProFTPD Default Installation"
|
---|
| 171 | ServerType standalone
|
---|
| 172 | DefaultServer on
|
---|
| 173 |
|
---|
| 174 | # Port 21 is the standard FTP port.
|
---|
| 175 | Port 21
|
---|
| 176 | # Umask 022 is a good standard umask to prevent new dirs and files
|
---|
| 177 | # from being group and world writable.
|
---|
| 178 | Umask 022
|
---|
| 179 |
|
---|
| 180 | # To prevent DoS attacks, set the maximum number of child processes
|
---|
| 181 | # to 30. If you need to allow more than 30 concurrent connections
|
---|
| 182 | # at once, simply increase this value. Note that this ONLY works
|
---|
| 183 | # in standalone mode, in inetd mode you should use an inetd server
|
---|
| 184 | # that allows you to limit maximum number of processes per service
|
---|
[59048cd9] | 185 | <!--# (such as xinetd)-->
|
---|
[08254fc] | 186 | MaxInstances 30
|
---|
| 187 |
|
---|
| 188 | # Set the user and group that the server normally runs at.
|
---|
| 189 | User proftpd
|
---|
| 190 | Group proftpd
|
---|
| 191 |
|
---|
[1586494] | 192 | # Normally, files should be overwritable.
|
---|
[08254fc] | 193 | <Directory /*>
|
---|
| 194 | AllowOverwrite on
|
---|
| 195 | </Directory>
|
---|
| 196 |
|
---|
| 197 | # A basic anonymous configuration, no upload directories.
|
---|
| 198 | <Anonymous ~proftpd>
|
---|
| 199 | User proftpd
|
---|
| 200 | Group proftpd
|
---|
[1586494] | 201 | # Clients should be able to login with "anonymous" as well as "proftpd"
|
---|
[08254fc] | 202 | UserAlias anonymous proftpd
|
---|
| 203 |
|
---|
| 204 | # Limit the maximum number of anonymous logins
|
---|
| 205 | MaxClients 10
|
---|
| 206 |
|
---|
[1586494] | 207 | # 'welcome.msg' should be displayed at login, and '.message' displayed
|
---|
[08254fc] | 208 | # in each newly chdired directory.
|
---|
| 209 | DisplayLogin welcome.msg
|
---|
[e5bc4ed] | 210 | DisplayChdir .message
|
---|
[08254fc] | 211 |
|
---|
| 212 | # Limit WRITE everywhere in the anonymous chroot
|
---|
| 213 | <Limit WRITE>
|
---|
| 214 | DenyAll
|
---|
| 215 | </Limit>
|
---|
[ce49e897] | 216 | </Anonymous></literal>
|
---|
| 217 | EOF</userinput></screen>
|
---|
| 218 |
|
---|
| 219 | </sect3>
|
---|
| 220 |
|
---|
| 221 | <sect3 id="proftpd-init">
|
---|
| 222 | <title>Boot Script</title>
|
---|
| 223 |
|
---|
| 224 | <para>Install the <filename>/etc/rc.d/init.d/proftpd</filename> init
|
---|
[5254d12] | 225 | script included in the <xref linkend="bootscripts"/>
|
---|
[ce49e897] | 226 | package.</para>
|
---|
| 227 |
|
---|
| 228 | <indexterm zone="proftpd proftpd-init">
|
---|
| 229 | <primary sortas="f-proftpd">proftpd</primary>
|
---|
| 230 | </indexterm>
|
---|
| 231 |
|
---|
| 232 | <screen role="root"><userinput>make install-proftpd</userinput></screen>
|
---|
| 233 |
|
---|
| 234 | </sect3>
|
---|
| 235 |
|
---|
| 236 | </sect2>
|
---|
| 237 |
|
---|
| 238 | <sect2 role="content">
|
---|
| 239 | <title>Contents</title>
|
---|
| 240 |
|
---|
| 241 | <segmentedlist>
|
---|
| 242 | <segtitle>Installed Programs</segtitle>
|
---|
| 243 | <segtitle>Installed Libraries</segtitle>
|
---|
| 244 | <segtitle>Installed Directory</segtitle>
|
---|
| 245 |
|
---|
| 246 | <seglistitem>
|
---|
[0d7900a] | 247 | <seg>ftpcount, ftpdctl, ftpasswd, ftpmail, ftpquota, ftpscrub,
|
---|
[10405e6] | 248 | ftptop, ftpshut, ftpcount, ftpwho, and proftpd</seg>
|
---|
[ce49e897] | 249 | <seg>None</seg>
|
---|
| 250 | <seg>/var/run/proftpd</seg>
|
---|
| 251 | </seglistitem>
|
---|
| 252 | </segmentedlist>
|
---|
| 253 |
|
---|
| 254 | <variablelist>
|
---|
| 255 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 256 | <?dbfo list-presentation="list"?>
|
---|
| 257 | <?dbhtml list-presentation="table"?>
|
---|
| 258 |
|
---|
| 259 | <varlistentry id="proftpd-prog">
|
---|
| 260 | <term><command>proftpd</command></term>
|
---|
| 261 | <listitem>
|
---|
| 262 | <para>is the FTP daemon.</para>
|
---|
| 263 | <indexterm zone="proftpd proftpd-prog">
|
---|
| 264 | <primary sortas="b-proftpd">proftpd</primary>
|
---|
| 265 | </indexterm>
|
---|
| 266 | </listitem>
|
---|
| 267 | </varlistentry>
|
---|
| 268 |
|
---|
| 269 | <varlistentry id="ftpcount">
|
---|
| 270 | <term><command>ftpcount</command></term>
|
---|
| 271 | <listitem>
|
---|
| 272 | <para>shows the current number of connections.</para>
|
---|
| 273 | <indexterm zone="proftpd ftpcount">
|
---|
| 274 | <primary sortas="b-ftpcount">ftpcount</primary>
|
---|
| 275 | </indexterm>
|
---|
| 276 | </listitem>
|
---|
| 277 | </varlistentry>
|
---|
| 278 |
|
---|
[e5bc4ed] | 279 | <varlistentry id="ftpdctl">
|
---|
| 280 | <term><command>ftpdctl</command></term>
|
---|
| 281 | <listitem>
|
---|
| 282 | <para>is used to control the proftpd daemon while it is running.</para>
|
---|
| 283 | <indexterm zone="proftpd ftpdctl">
|
---|
| 284 | <primary sortas="b-ftpdctl">ftpdctl</primary>
|
---|
| 285 | </indexterm>
|
---|
| 286 | </listitem>
|
---|
| 287 | </varlistentry>
|
---|
| 288 |
|
---|
| 289 | <varlistentry id="ftpasswd">
|
---|
| 290 | <term><command>ftpasswd</command></term>
|
---|
| 291 | <listitem>
|
---|
[0d7900a] | 292 | <para>is a Perl script designed to create and manage
|
---|
[e5bc4ed] | 293 | AuthUserFiles and AuthGroupFiles of the correct format for proftpd.</para>
|
---|
| 294 | <indexterm zone="proftpd ftpasswd">
|
---|
| 295 | <primary sortas="b-ftpasswd">ftpasswd</primary>
|
---|
| 296 | </indexterm>
|
---|
| 297 | </listitem>
|
---|
| 298 | </varlistentry>
|
---|
| 299 |
|
---|
| 300 | <varlistentry id="ftpmail">
|
---|
| 301 | <term><command>ftpmail</command></term>
|
---|
| 302 | <listitem>
|
---|
[601a838] | 303 | <para>is a Perl script for sending email based on the proftpd TransferLog.
|
---|
[e5bc4ed] | 304 | </para>
|
---|
| 305 | <indexterm zone="proftpd ftpmail">
|
---|
| 306 | <primary sortas="b-ftpmail">ftpmail</primary>
|
---|
| 307 | </indexterm>
|
---|
| 308 | </listitem>
|
---|
| 309 | </varlistentry>
|
---|
| 310 |
|
---|
| 311 | <varlistentry id="ftpquota">
|
---|
| 312 | <term><command>ftpquota</command></term>
|
---|
| 313 | <listitem>
|
---|
[0d7900a] | 314 | <para>is a Perl script designed to create and manage limits and tally
|
---|
| 315 | files for the mod_quotatab + mod_quotatab_file module combination
|
---|
[e5bc4ed] | 316 | for proftpd.</para>
|
---|
| 317 | <indexterm zone="proftpd ftpquota">
|
---|
| 318 | <primary sortas="b-ftpquota">ftpquota</primary>
|
---|
| 319 | </indexterm>
|
---|
| 320 | </listitem>
|
---|
| 321 | </varlistentry>
|
---|
| 322 |
|
---|
| 323 | <varlistentry id="ftpscrub">
|
---|
| 324 | <term><command>ftpscrub</command></term>
|
---|
| 325 | <listitem>
|
---|
| 326 | <para>provides a way to scrub the scoreboard file on demand.</para>
|
---|
| 327 | <indexterm zone="proftpd ftpscrub">
|
---|
| 328 | <primary sortas="b-ftpscrub">ftpscrub</primary>
|
---|
| 329 | </indexterm>
|
---|
| 330 | </listitem>
|
---|
| 331 | </varlistentry>
|
---|
| 332 |
|
---|
[ce49e897] | 333 | <varlistentry id="ftpshut">
|
---|
| 334 | <term><command>ftpshut</command></term>
|
---|
| 335 | <listitem>
|
---|
| 336 | <para>shuts down all <application>proftpd</application> servers
|
---|
| 337 | at a given time.</para>
|
---|
| 338 | <indexterm zone="proftpd ftpshut">
|
---|
| 339 | <primary sortas="b-ftpshut">ftpshut</primary>
|
---|
| 340 | </indexterm>
|
---|
| 341 | </listitem>
|
---|
| 342 | </varlistentry>
|
---|
| 343 |
|
---|
| 344 | <varlistentry id="ftptop">
|
---|
| 345 | <term><command>ftptop</command></term>
|
---|
| 346 | <listitem>
|
---|
| 347 | <para>displays running status on connections.</para>
|
---|
| 348 | <indexterm zone="proftpd ftptop">
|
---|
| 349 | <primary sortas="b-ftptop">ftptop</primary>
|
---|
| 350 | </indexterm>
|
---|
| 351 | </listitem>
|
---|
| 352 | </varlistentry>
|
---|
| 353 |
|
---|
| 354 | <varlistentry id="ftpwho">
|
---|
| 355 | <term><command>ftpwho</command></term>
|
---|
| 356 | <listitem>
|
---|
| 357 | <para>shows current process information for each session.</para>
|
---|
| 358 | <indexterm zone="proftpd ftpwho">
|
---|
| 359 | <primary sortas="b-ftpwho">ftpwho</primary>
|
---|
| 360 | </indexterm>
|
---|
| 361 | </listitem>
|
---|
| 362 | </varlistentry>
|
---|
| 363 |
|
---|
| 364 | </variablelist>
|
---|
| 365 |
|
---|
| 366 | </sect2>
|
---|
[1598426] | 367 |
|
---|
| 368 | </sect1>
|
---|