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