[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">
|
---|
[ca8cc947] | 9 | <!ENTITY proftpd-md5sum "b9d3092411478415b31d435f8e26d173">
|
---|
| 10 | <!ENTITY proftpd-size "29 MB">
|
---|
| 11 | <!ENTITY proftpd-buildsize "69 MB">
|
---|
| 12 | <!ENTITY proftpd-time "0.2 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 |
|
---|
[63ba2645] | 36 | &lfs77_checked; &gcc5_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">
|
---|
[56605b9] | 64 | <xref linkend="libcap-pam"/>,
|
---|
[2f62a072] | 65 | <xref linkend="linux-pam"/>,
|
---|
[5e0662d] | 66 | <xref linkend="mariadb"/> or <ulink url="http://www.mysql.com/">MySQL</ulink>,
|
---|
[2f62a072] | 67 | <xref linkend="openssl"/>,
|
---|
| 68 | <xref linkend="pcre"/>,
|
---|
[e89d59a] | 69 | <xref linkend="postgresql"/> and to run tests:
|
---|
[e5bc4ed] | 70 | <xref linkend="check"/> and
|
---|
| 71 | <ulink url='http://search.cpan.org/~clemburg/Test-Unit-0.14/'>Test::Unit-0.14</ulink>
|
---|
| 72 | </para>
|
---|
[ce49e897] | 73 |
|
---|
[3cb0c57] | 74 | <para condition="html" role="usernotes">User Notes:
|
---|
| 75 | <ulink url="&blfs-wiki;/proftpd"/></para>
|
---|
| 76 |
|
---|
[ce49e897] | 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | <sect2 role="installation">
|
---|
| 80 | <title>Installation of ProFTPD</title>
|
---|
| 81 |
|
---|
| 82 | <para>For security reasons, you should install
|
---|
| 83 | <application>ProFTPD</application> using an unprivileged user and group.
|
---|
| 84 | As the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 85 |
|
---|
[283bd88] | 86 | <screen role="root"><userinput>groupadd -g 46 proftpd &&
|
---|
[13be1e2] | 87 | useradd -c proftpd -d /srv/ftp -g proftpd \
|
---|
[283bd88] | 88 | -s /usr/bin/proftpdshell -u 46 proftpd &&
|
---|
| 89 |
|
---|
[13be1e2] | 90 | install -v -d -m775 -o proftpd -g proftpd /srv/ftp &&
|
---|
[283bd88] | 91 | ln -v -s /bin/false /usr/bin/proftpdshell &&
|
---|
[13be1e2] | 92 | echo /usr/bin/proftpdshell >> /etc/shells</userinput></screen>
|
---|
[08254fc] | 93 |
|
---|
[4c288b0] | 94 | <para>Install <application>ProFTPD</application> as an unprivileged user by
|
---|
[ce49e897] | 95 | running the following commands:</para>
|
---|
[08254fc] | 96 |
|
---|
[e5bc4ed] | 97 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/run &&
|
---|
[ce49e897] | 98 | make</userinput></screen>
|
---|
[1728f4e] | 99 |
|
---|
[e5bc4ed] | 100 | <para>The tests for this package require a very old (2001) version of the
|
---|
[e89d59a] | 101 | Perl Module Test::Unit. Even when using that version of Test::Unit, there
|
---|
| 102 | are many failures (41/1397) although the program appears to run
|
---|
| 103 | well. The tests take a long time (45 minutes, not CPU dependent) and are
|
---|
| 104 | not recommended. To test the results anyway, add the switch: <parameter>
|
---|
| 105 | --enable-tests</parameter> to the <command>configure</command>, and
|
---|
| 106 | issue: <command>make check</command>. If the tests are run with root
|
---|
| 107 | privileges, more tests are run, but there are more failures.</para>
|
---|
[e5bc4ed] | 108 |
|
---|
[ce49e897] | 109 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[08254fc] | 110 |
|
---|
[ce49e897] | 111 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[08254fc] | 112 |
|
---|
[ce49e897] | 113 | </sect2>
|
---|
[08254fc] | 114 |
|
---|
[ce49e897] | 115 | <sect2 role="commands">
|
---|
| 116 | <title>Command Explanations</title>
|
---|
[1728f4e] | 117 |
|
---|
[ce49e897] | 118 | <para><command>install -v -d -m775 -o proftpd -g proftpd
|
---|
[13be1e2] | 119 | /srv/ftp</command>: Create the home directory for
|
---|
[ce49e897] | 120 | <application>ProFTPD</application>.</para>
|
---|
[1728f4e] | 121 |
|
---|
[13be1e2] | 122 | <para><command>ln -v -s /bin/false /usr/bin/proftpdshell</command>:
|
---|
[4c288b0] | 123 | Set the default shell as a link to an invalid shell.</para>
|
---|
[1728f4e] | 124 |
|
---|
[13be1e2] | 125 | <para><command>echo /usr/bin/proftpdshell >>
|
---|
[bfb7882] | 126 | /etc/shells</command>: Fake a valid shell for compatibility purposes.</para>
|
---|
[1728f4e] | 127 |
|
---|
[ce49e897] | 128 | <note>
|
---|
[13be1e2] | 129 | <para>The above two commands can be omitted if the following directive is
|
---|
[ce49e897] | 130 | placed in the configuration file:</para>
|
---|
[1728f4e] | 131 |
|
---|
[ce49e897] | 132 | <screen><literal>RequireValidShell off</literal></screen>
|
---|
[1728f4e] | 133 |
|
---|
[ce49e897] | 134 | <para>By default, proftpd will require that users logging in have valid
|
---|
| 135 | shells. The RequireValidShell directive turns off this requirement. This
|
---|
| 136 | is only recommended if you are setting up your FTP server exclusively
|
---|
| 137 | for anonymous downloads.</para>
|
---|
| 138 | </note>
|
---|
[08254fc] | 139 |
|
---|
[2f62a072] | 140 | <note>
|
---|
| 141 | <para>
|
---|
| 142 | Support for most of the dependency packages requires using options
|
---|
| 143 | passed to the <command>configure</command> script. View the output
|
---|
| 144 | from <command>./configure --help</command> for complete information
|
---|
| 145 | about enabling dependency packages.
|
---|
| 146 | </para>
|
---|
| 147 | </note>
|
---|
[08254fc] | 148 |
|
---|
[ce49e897] | 149 | </sect2>
|
---|
[08254fc] | 150 |
|
---|
[ce49e897] | 151 | <sect2 role="configuration">
|
---|
| 152 | <title>Configuring ProFTPD</title>
|
---|
[1728f4e] | 153 |
|
---|
[ce49e897] | 154 | <sect3 id='proftpd-config'>
|
---|
| 155 | <title>Config Files</title>
|
---|
[1728f4e] | 156 |
|
---|
[ce49e897] | 157 | <para><filename>/etc/proftpd.conf</filename></para>
|
---|
[1728f4e] | 158 |
|
---|
[ce49e897] | 159 | <indexterm zone="proftpd proftpd-config">
|
---|
| 160 | <primary sortas="e-etc-proftpd">/etc/proftpd.conf</primary>
|
---|
| 161 | </indexterm>
|
---|
[1586494] | 162 |
|
---|
[ce49e897] | 163 | </sect3>
|
---|
[08254fc] | 164 |
|
---|
[ce49e897] | 165 | <sect3>
|
---|
| 166 | <title>Configuration Information</title>
|
---|
[08254fc] | 167 |
|
---|
[ce49e897] | 168 | <para>This is a simple, download-only sample configuration. See the
|
---|
| 169 | <application>ProFTPD</application> documentation in
|
---|
| 170 | <filename class="directory">/usr/share/doc/proftpd</filename> and
|
---|
| 171 | consult the website at <ulink url="http://www.proftpd.org/"/> for
|
---|
| 172 | example configurations.</para>
|
---|
[1728f4e] | 173 |
|
---|
[8e37798] | 174 | <screen role="root"><?dbfo keep-together="auto"?><userinput>cat > /etc/proftpd.conf << "EOF"
|
---|
[ce49e897] | 175 | <literal># This is a basic ProFTPD configuration file
|
---|
[08254fc] | 176 | # It establishes a single server and a single anonymous login.
|
---|
| 177 |
|
---|
| 178 | ServerName "ProFTPD Default Installation"
|
---|
| 179 | ServerType standalone
|
---|
| 180 | DefaultServer on
|
---|
| 181 |
|
---|
| 182 | # Port 21 is the standard FTP port.
|
---|
| 183 | Port 21
|
---|
| 184 | # Umask 022 is a good standard umask to prevent new dirs and files
|
---|
| 185 | # from being group and world writable.
|
---|
| 186 | Umask 022
|
---|
| 187 |
|
---|
| 188 | # To prevent DoS attacks, set the maximum number of child processes
|
---|
| 189 | # to 30. If you need to allow more than 30 concurrent connections
|
---|
| 190 | # at once, simply increase this value. Note that this ONLY works
|
---|
| 191 | # in standalone mode, in inetd mode you should use an inetd server
|
---|
| 192 | # that allows you to limit maximum number of processes per service
|
---|
[59048cd9] | 193 | <!--# (such as xinetd)-->
|
---|
[08254fc] | 194 | MaxInstances 30
|
---|
| 195 |
|
---|
| 196 | # Set the user and group that the server normally runs at.
|
---|
| 197 | User proftpd
|
---|
| 198 | Group proftpd
|
---|
| 199 |
|
---|
[e89d59a] | 200 | # To cause every FTP user to be "jailed" (chrooted) into their home
|
---|
| 201 | # directory, uncomment this line.
|
---|
| 202 | #DefaultRoot ~
|
---|
| 203 |
|
---|
| 204 |
|
---|
[1586494] | 205 | # Normally, files should be overwritable.
|
---|
[08254fc] | 206 | <Directory /*>
|
---|
| 207 | AllowOverwrite on
|
---|
| 208 | </Directory>
|
---|
| 209 |
|
---|
| 210 | # A basic anonymous configuration, no upload directories.
|
---|
| 211 | <Anonymous ~proftpd>
|
---|
| 212 | User proftpd
|
---|
| 213 | Group proftpd
|
---|
[1586494] | 214 | # Clients should be able to login with "anonymous" as well as "proftpd"
|
---|
[08254fc] | 215 | UserAlias anonymous proftpd
|
---|
| 216 |
|
---|
| 217 | # Limit the maximum number of anonymous logins
|
---|
| 218 | MaxClients 10
|
---|
| 219 |
|
---|
[1586494] | 220 | # 'welcome.msg' should be displayed at login, and '.message' displayed
|
---|
[08254fc] | 221 | # in each newly chdired directory.
|
---|
| 222 | DisplayLogin welcome.msg
|
---|
[e5bc4ed] | 223 | DisplayChdir .message
|
---|
[08254fc] | 224 |
|
---|
| 225 | # Limit WRITE everywhere in the anonymous chroot
|
---|
| 226 | <Limit WRITE>
|
---|
| 227 | DenyAll
|
---|
| 228 | </Limit>
|
---|
[ce49e897] | 229 | </Anonymous></literal>
|
---|
| 230 | EOF</userinput></screen>
|
---|
| 231 |
|
---|
| 232 | </sect3>
|
---|
| 233 |
|
---|
| 234 | <sect3 id="proftpd-init">
|
---|
| 235 | <title>Boot Script</title>
|
---|
| 236 |
|
---|
| 237 | <para>Install the <filename>/etc/rc.d/init.d/proftpd</filename> init
|
---|
[5254d12] | 238 | script included in the <xref linkend="bootscripts"/>
|
---|
[ce49e897] | 239 | package.</para>
|
---|
| 240 |
|
---|
| 241 | <indexterm zone="proftpd proftpd-init">
|
---|
| 242 | <primary sortas="f-proftpd">proftpd</primary>
|
---|
| 243 | </indexterm>
|
---|
| 244 |
|
---|
| 245 | <screen role="root"><userinput>make install-proftpd</userinput></screen>
|
---|
| 246 |
|
---|
| 247 | </sect3>
|
---|
| 248 |
|
---|
| 249 | </sect2>
|
---|
| 250 |
|
---|
| 251 | <sect2 role="content">
|
---|
| 252 | <title>Contents</title>
|
---|
| 253 |
|
---|
| 254 | <segmentedlist>
|
---|
| 255 | <segtitle>Installed Programs</segtitle>
|
---|
| 256 | <segtitle>Installed Libraries</segtitle>
|
---|
| 257 | <segtitle>Installed Directory</segtitle>
|
---|
| 258 |
|
---|
| 259 | <seglistitem>
|
---|
[ca8cc947] | 260 | <seg>
|
---|
| 261 | ftpasswd, ftpcount, ftpdctl, ftpmail, ftpquota, ftpscrub, ftpshut,
|
---|
| 262 | ftptop, ftpwho, in.proftpd (symlink), proftpd, and prxs
|
---|
| 263 | </seg>
|
---|
| 264 | <seg>
|
---|
| 265 | None
|
---|
| 266 | </seg>
|
---|
| 267 | <seg>
|
---|
| 268 | /usr/{include,lib}/proftpd
|
---|
| 269 | </seg>
|
---|
[ce49e897] | 270 | </seglistitem>
|
---|
| 271 | </segmentedlist>
|
---|
| 272 |
|
---|
| 273 | <variablelist>
|
---|
| 274 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 275 | <?dbfo list-presentation="list"?>
|
---|
| 276 | <?dbhtml list-presentation="table"?>
|
---|
| 277 |
|
---|
| 278 | <varlistentry id="proftpd-prog">
|
---|
| 279 | <term><command>proftpd</command></term>
|
---|
| 280 | <listitem>
|
---|
| 281 | <para>is the FTP daemon.</para>
|
---|
| 282 | <indexterm zone="proftpd proftpd-prog">
|
---|
| 283 | <primary sortas="b-proftpd">proftpd</primary>
|
---|
| 284 | </indexterm>
|
---|
| 285 | </listitem>
|
---|
| 286 | </varlistentry>
|
---|
| 287 |
|
---|
| 288 | <varlistentry id="ftpcount">
|
---|
| 289 | <term><command>ftpcount</command></term>
|
---|
| 290 | <listitem>
|
---|
| 291 | <para>shows the current number of connections.</para>
|
---|
| 292 | <indexterm zone="proftpd ftpcount">
|
---|
| 293 | <primary sortas="b-ftpcount">ftpcount</primary>
|
---|
| 294 | </indexterm>
|
---|
| 295 | </listitem>
|
---|
| 296 | </varlistentry>
|
---|
| 297 |
|
---|
[e5bc4ed] | 298 | <varlistentry id="ftpdctl">
|
---|
| 299 | <term><command>ftpdctl</command></term>
|
---|
| 300 | <listitem>
|
---|
| 301 | <para>is used to control the proftpd daemon while it is running.</para>
|
---|
| 302 | <indexterm zone="proftpd ftpdctl">
|
---|
| 303 | <primary sortas="b-ftpdctl">ftpdctl</primary>
|
---|
| 304 | </indexterm>
|
---|
| 305 | </listitem>
|
---|
| 306 | </varlistentry>
|
---|
| 307 |
|
---|
| 308 | <varlistentry id="ftpasswd">
|
---|
| 309 | <term><command>ftpasswd</command></term>
|
---|
| 310 | <listitem>
|
---|
[0d7900a] | 311 | <para>is a Perl script designed to create and manage
|
---|
[e5bc4ed] | 312 | AuthUserFiles and AuthGroupFiles of the correct format for proftpd.</para>
|
---|
| 313 | <indexterm zone="proftpd ftpasswd">
|
---|
| 314 | <primary sortas="b-ftpasswd">ftpasswd</primary>
|
---|
| 315 | </indexterm>
|
---|
| 316 | </listitem>
|
---|
| 317 | </varlistentry>
|
---|
| 318 |
|
---|
| 319 | <varlistentry id="ftpmail">
|
---|
| 320 | <term><command>ftpmail</command></term>
|
---|
| 321 | <listitem>
|
---|
[601a838] | 322 | <para>is a Perl script for sending email based on the proftpd TransferLog.
|
---|
[e5bc4ed] | 323 | </para>
|
---|
| 324 | <indexterm zone="proftpd ftpmail">
|
---|
| 325 | <primary sortas="b-ftpmail">ftpmail</primary>
|
---|
| 326 | </indexterm>
|
---|
| 327 | </listitem>
|
---|
| 328 | </varlistentry>
|
---|
| 329 |
|
---|
| 330 | <varlistentry id="ftpquota">
|
---|
| 331 | <term><command>ftpquota</command></term>
|
---|
| 332 | <listitem>
|
---|
[0d7900a] | 333 | <para>is a Perl script designed to create and manage limits and tally
|
---|
| 334 | files for the mod_quotatab + mod_quotatab_file module combination
|
---|
[e5bc4ed] | 335 | for proftpd.</para>
|
---|
| 336 | <indexterm zone="proftpd ftpquota">
|
---|
| 337 | <primary sortas="b-ftpquota">ftpquota</primary>
|
---|
| 338 | </indexterm>
|
---|
| 339 | </listitem>
|
---|
| 340 | </varlistentry>
|
---|
| 341 |
|
---|
| 342 | <varlistentry id="ftpscrub">
|
---|
| 343 | <term><command>ftpscrub</command></term>
|
---|
| 344 | <listitem>
|
---|
| 345 | <para>provides a way to scrub the scoreboard file on demand.</para>
|
---|
| 346 | <indexterm zone="proftpd ftpscrub">
|
---|
| 347 | <primary sortas="b-ftpscrub">ftpscrub</primary>
|
---|
| 348 | </indexterm>
|
---|
| 349 | </listitem>
|
---|
| 350 | </varlistentry>
|
---|
| 351 |
|
---|
[ce49e897] | 352 | <varlistentry id="ftpshut">
|
---|
| 353 | <term><command>ftpshut</command></term>
|
---|
| 354 | <listitem>
|
---|
| 355 | <para>shuts down all <application>proftpd</application> servers
|
---|
| 356 | at a given time.</para>
|
---|
| 357 | <indexterm zone="proftpd ftpshut">
|
---|
| 358 | <primary sortas="b-ftpshut">ftpshut</primary>
|
---|
| 359 | </indexterm>
|
---|
| 360 | </listitem>
|
---|
| 361 | </varlistentry>
|
---|
| 362 |
|
---|
| 363 | <varlistentry id="ftptop">
|
---|
| 364 | <term><command>ftptop</command></term>
|
---|
| 365 | <listitem>
|
---|
| 366 | <para>displays running status on connections.</para>
|
---|
| 367 | <indexterm zone="proftpd ftptop">
|
---|
| 368 | <primary sortas="b-ftptop">ftptop</primary>
|
---|
| 369 | </indexterm>
|
---|
| 370 | </listitem>
|
---|
| 371 | </varlistentry>
|
---|
| 372 |
|
---|
| 373 | <varlistentry id="ftpwho">
|
---|
| 374 | <term><command>ftpwho</command></term>
|
---|
| 375 | <listitem>
|
---|
| 376 | <para>shows current process information for each session.</para>
|
---|
| 377 | <indexterm zone="proftpd ftpwho">
|
---|
| 378 | <primary sortas="b-ftpwho">ftpwho</primary>
|
---|
| 379 | </indexterm>
|
---|
| 380 | </listitem>
|
---|
| 381 | </varlistentry>
|
---|
| 382 |
|
---|
[ca8cc947] | 383 | <varlistentry id="prxs">
|
---|
| 384 | <term><command>prxs</command></term>
|
---|
| 385 | <listitem>
|
---|
| 386 | <para>is a Perl script designed to compile and install third-party
|
---|
| 387 | modules, from source code, as DSO modules for the installed
|
---|
| 388 | proftpd.</para>
|
---|
| 389 | <indexterm zone="proftpd prxs">
|
---|
| 390 | <primary sortas="b-prxs">prxs</primary>
|
---|
| 391 | </indexterm>
|
---|
| 392 | </listitem>
|
---|
| 393 | </varlistentry>
|
---|
| 394 |
|
---|
[ce49e897] | 395 | </variablelist>
|
---|
| 396 |
|
---|
| 397 | </sect2>
|
---|
[1598426] | 398 |
|
---|
| 399 | </sect1>
|
---|