[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 |
|
---|
| 7 | <!-- Inserted as a reminder to do this. The mention of a test suite
|
---|
| 8 | is usually right before the root user installation commands. Please
|
---|
| 9 | delete these 12 (including one blank) lines after you are done.-->
|
---|
| 10 |
|
---|
| 11 | <!-- Use one of the two mentions below about a test suite,
|
---|
| 12 | delete the line that is not applicable. Of course, if the
|
---|
| 13 | test suite uses syntax other than "make check", revise the
|
---|
| 14 | line to reflect the actual syntax to run the test suite -->
|
---|
| 15 |
|
---|
| 16 | <!-- <para>This package does not come with a test suite.</para> -->
|
---|
| 17 | <!-- <para>To test the results, issue: <command>make check</command>.</para> -->
|
---|
[edeebe2] | 18 | <!-- Dead link
|
---|
[08254fc] | 19 | <!ENTITY proftpd-download-http "http://ftp.proftpd.org/distrib/source/proftpd-&proftpd-version;.tar.bz2">
|
---|
[edeebe2] | 20 | -->
|
---|
| 21 | <!ENTITY proftpd-download-http " ">
|
---|
[08254fc] | 22 | <!ENTITY proftpd-download-ftp "ftp://ftp.proftpd.org/distrib/source/proftpd-&proftpd-version;.tar.bz2">
|
---|
[0af9bb66] | 23 | <!ENTITY proftpd-md5sum "fae47d01b52e035eb6b7190e74c17722">
|
---|
| 24 | <!ENTITY proftpd-size "1.3 MB">
|
---|
| 25 | <!ENTITY proftpd-buildsize "12.2 MB">
|
---|
| 26 | <!ENTITY proftpd-time "0.3 SBU">
|
---|
[08254fc] | 27 | ]>
|
---|
| 28 |
|
---|
[1598426] | 29 | <sect1 id="proftpd" xreflabel="ProFTPD-&proftpd-version;">
|
---|
[ce49e897] | 30 | <?dbhtml filename="proftpd.html"?>
|
---|
| 31 |
|
---|
| 32 | <sect1info>
|
---|
| 33 | <othername>$LastChangedBy$</othername>
|
---|
| 34 | <date>$Date$</date>
|
---|
| 35 | </sect1info>
|
---|
| 36 |
|
---|
| 37 | <title>ProFTPD-&proftpd-version;</title>
|
---|
| 38 |
|
---|
| 39 | <indexterm zone="proftpd">
|
---|
| 40 | <primary sortas="a-proftpd">Proftpd</primary>
|
---|
| 41 | </indexterm>
|
---|
| 42 |
|
---|
| 43 | <sect2 role="package">
|
---|
| 44 | <title>Introduction to ProFTPD</title>
|
---|
| 45 |
|
---|
| 46 | <para>The <application>ProFTPD</application> package contains a secure
|
---|
| 47 | and highly configurable FTP daemon. This is useful for serving large
|
---|
| 48 | file archives over a network.</para>
|
---|
| 49 |
|
---|
| 50 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 51 | <itemizedlist spacing="compact">
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Download (HTTP): <ulink url="&proftpd-download-http;"/></para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Download (FTP): <ulink url="&proftpd-download-ftp;"/></para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>Download MD5 sum: &proftpd-md5sum;</para>
|
---|
| 60 | </listitem>
|
---|
| 61 | <listitem>
|
---|
| 62 | <para>Download size: &proftpd-size;</para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>Estimated disk space required: &proftpd-buildsize;</para>
|
---|
| 66 | </listitem>
|
---|
| 67 | <listitem>
|
---|
| 68 | <para>Estimated build time: &proftpd-time;</para>
|
---|
| 69 | </listitem>
|
---|
| 70 | </itemizedlist>
|
---|
| 71 |
|
---|
| 72 | <bridgehead renderas="sect3">ProFTPD Dependencies</bridgehead>
|
---|
| 73 |
|
---|
| 74 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
[a6ac43b] | 75 | <para role="optional"><xref linkend="linux-pam"/></para>
|
---|
[ce49e897] | 76 |
|
---|
[3cb0c57] | 77 | <para condition="html" role="usernotes">User Notes:
|
---|
| 78 | <ulink url="&blfs-wiki;/proftpd"/></para>
|
---|
| 79 |
|
---|
[ce49e897] | 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="installation">
|
---|
| 83 | <title>Installation of ProFTPD</title>
|
---|
| 84 |
|
---|
| 85 | <para>For security reasons, you should install
|
---|
| 86 | <application>ProFTPD</application> using an unprivileged user and group.
|
---|
| 87 | As the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 88 |
|
---|
[b785ab29] | 89 | <screen role="root"><userinput>groupadd -g 46 proftpd &&
|
---|
[13be1e2] | 90 | useradd -c proftpd -d /srv/ftp -g proftpd \
|
---|
| 91 | -s /usr/bin/proftpdshell -u 46 proftpd &&
|
---|
| 92 | install -v -d -m775 -o proftpd -g proftpd /srv/ftp &&
|
---|
| 93 | ln -v -s /bin/false /usr/bin/proftpdshell &&
|
---|
| 94 | echo /usr/bin/proftpdshell >> /etc/shells</userinput></screen>
|
---|
[08254fc] | 95 |
|
---|
[4c288b0] | 96 | <para>Install <application>ProFTPD</application> as an unprivileged user by
|
---|
[ce49e897] | 97 | running the following commands:</para>
|
---|
[08254fc] | 98 |
|
---|
[13be1e2] | 99 | <screen><userinput>./configure --prefix=/usr --sysconfdir=/etc \
|
---|
[39373956] | 100 | --localstatedir=/var/run &&
|
---|
[ce49e897] | 101 | make</userinput></screen>
|
---|
[1728f4e] | 102 |
|
---|
[ce49e897] | 103 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
[08254fc] | 104 |
|
---|
[ce49e897] | 105 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
[08254fc] | 106 |
|
---|
[ce49e897] | 107 | </sect2>
|
---|
[08254fc] | 108 |
|
---|
[ce49e897] | 109 | <sect2 role="commands">
|
---|
| 110 | <title>Command Explanations</title>
|
---|
[1728f4e] | 111 |
|
---|
[ce49e897] | 112 | <para><command>install -v -d -m775 -o proftpd -g proftpd
|
---|
[13be1e2] | 113 | /srv/ftp</command>: Create the home directory for
|
---|
[ce49e897] | 114 | <application>ProFTPD</application>.</para>
|
---|
[1728f4e] | 115 |
|
---|
[13be1e2] | 116 | <para><command>ln -v -s /bin/false /usr/bin/proftpdshell</command>:
|
---|
[4c288b0] | 117 | Set the default shell as a link to an invalid shell.</para>
|
---|
[1728f4e] | 118 |
|
---|
[13be1e2] | 119 | <para><command>echo /usr/bin/proftpdshell >>
|
---|
[bfb7882] | 120 | /etc/shells</command>: Fake a valid shell for compatibility purposes.</para>
|
---|
[1728f4e] | 121 |
|
---|
[ce49e897] | 122 | <note>
|
---|
[13be1e2] | 123 | <para>The above two commands can be omitted if the following directive is
|
---|
[ce49e897] | 124 | placed in the configuration file:</para>
|
---|
[1728f4e] | 125 |
|
---|
[ce49e897] | 126 | <screen><literal>RequireValidShell off</literal></screen>
|
---|
[1728f4e] | 127 |
|
---|
[ce49e897] | 128 | <para>By default, proftpd will require that users logging in have valid
|
---|
| 129 | shells. The RequireValidShell directive turns off this requirement. This
|
---|
| 130 | is only recommended if you are setting up your FTP server exclusively
|
---|
| 131 | for anonymous downloads.</para>
|
---|
| 132 | </note>
|
---|
[08254fc] | 133 |
|
---|
[ce49e897] | 134 | <para><parameter>--sysconfdir=/etc</parameter>: This prevents the
|
---|
| 135 | configuration files from going to
|
---|
| 136 | <filename class="directory">/usr/etc</filename>.</para>
|
---|
[08254fc] | 137 |
|
---|
[ce49e897] | 138 | <para><parameter>--localstatedir=/var/run</parameter>:
|
---|
| 139 | This uses <filename class="directory">/var/run</filename> instead of
|
---|
| 140 | <filename class="directory">/usr/var</filename> for lock files.</para>
|
---|
[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
|
---|
| 186 | # (such as xinetd)
|
---|
| 187 | MaxInstances 30
|
---|
| 188 |
|
---|
| 189 | # Set the user and group that the server normally runs at.
|
---|
| 190 | User proftpd
|
---|
| 191 | Group proftpd
|
---|
| 192 |
|
---|
[1586494] | 193 | # Normally, files should be overwritable.
|
---|
[08254fc] | 194 | <Directory /*>
|
---|
| 195 | AllowOverwrite on
|
---|
| 196 | </Directory>
|
---|
| 197 |
|
---|
| 198 | # A basic anonymous configuration, no upload directories.
|
---|
| 199 | <Anonymous ~proftpd>
|
---|
| 200 | User proftpd
|
---|
| 201 | Group proftpd
|
---|
[1586494] | 202 | # Clients should be able to login with "anonymous" as well as "proftpd"
|
---|
[08254fc] | 203 | UserAlias anonymous proftpd
|
---|
| 204 |
|
---|
| 205 | # Limit the maximum number of anonymous logins
|
---|
| 206 | MaxClients 10
|
---|
| 207 |
|
---|
[1586494] | 208 | # 'welcome.msg' should be displayed at login, and '.message' displayed
|
---|
[08254fc] | 209 | # in each newly chdired directory.
|
---|
| 210 | DisplayLogin welcome.msg
|
---|
| 211 | DisplayFirstChdir .message
|
---|
| 212 |
|
---|
| 213 | # Limit WRITE everywhere in the anonymous chroot
|
---|
| 214 | <Limit WRITE>
|
---|
| 215 | DenyAll
|
---|
| 216 | </Limit>
|
---|
[ce49e897] | 217 | </Anonymous></literal>
|
---|
| 218 | EOF</userinput></screen>
|
---|
| 219 |
|
---|
| 220 | </sect3>
|
---|
| 221 |
|
---|
| 222 | <sect3 id="proftpd-init">
|
---|
| 223 | <title>Boot Script</title>
|
---|
| 224 |
|
---|
| 225 | <para>Install the <filename>/etc/rc.d/init.d/proftpd</filename> init
|
---|
[5254d12] | 226 | script included in the <xref linkend="bootscripts"/>
|
---|
[ce49e897] | 227 | package.</para>
|
---|
| 228 |
|
---|
| 229 | <indexterm zone="proftpd proftpd-init">
|
---|
| 230 | <primary sortas="f-proftpd">proftpd</primary>
|
---|
| 231 | </indexterm>
|
---|
| 232 |
|
---|
| 233 | <screen role="root"><userinput>make install-proftpd</userinput></screen>
|
---|
| 234 |
|
---|
| 235 | </sect3>
|
---|
| 236 |
|
---|
| 237 | </sect2>
|
---|
| 238 |
|
---|
| 239 | <sect2 role="content">
|
---|
| 240 | <title>Contents</title>
|
---|
| 241 |
|
---|
| 242 | <segmentedlist>
|
---|
| 243 | <segtitle>Installed Programs</segtitle>
|
---|
| 244 | <segtitle>Installed Libraries</segtitle>
|
---|
| 245 | <segtitle>Installed Directory</segtitle>
|
---|
| 246 |
|
---|
| 247 | <seglistitem>
|
---|
| 248 | <seg>ftpcount, ftpdctl, ftptop, ftpwho, ftpshut, proftpd</seg>
|
---|
| 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 |
|
---|
| 279 | <varlistentry id="ftpshut">
|
---|
| 280 | <term><command>ftpshut</command></term>
|
---|
| 281 | <listitem>
|
---|
| 282 | <para>shuts down all <application>proftpd</application> servers
|
---|
| 283 | at a given time.</para>
|
---|
| 284 | <indexterm zone="proftpd ftpshut">
|
---|
| 285 | <primary sortas="b-ftpshut">ftpshut</primary>
|
---|
| 286 | </indexterm>
|
---|
| 287 | </listitem>
|
---|
| 288 | </varlistentry>
|
---|
| 289 |
|
---|
| 290 | <varlistentry id="ftptop">
|
---|
| 291 | <term><command>ftptop</command></term>
|
---|
| 292 | <listitem>
|
---|
| 293 | <para>displays running status on connections.</para>
|
---|
| 294 | <indexterm zone="proftpd ftptop">
|
---|
| 295 | <primary sortas="b-ftptop">ftptop</primary>
|
---|
| 296 | </indexterm>
|
---|
| 297 | </listitem>
|
---|
| 298 | </varlistentry>
|
---|
| 299 |
|
---|
| 300 | <varlistentry id="ftpwho">
|
---|
| 301 | <term><command>ftpwho</command></term>
|
---|
| 302 | <listitem>
|
---|
| 303 | <para>shows current process information for each session.</para>
|
---|
| 304 | <indexterm zone="proftpd ftpwho">
|
---|
| 305 | <primary sortas="b-ftpwho">ftpwho</primary>
|
---|
| 306 | </indexterm>
|
---|
| 307 | </listitem>
|
---|
| 308 | </varlistentry>
|
---|
| 309 |
|
---|
| 310 | </variablelist>
|
---|
| 311 |
|
---|
| 312 | </sect2>
|
---|
[1598426] | 313 |
|
---|
| 314 | </sect1>
|
---|