[08254fc] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[08254fc] | 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">
|
---|
[7bc4c361] | 9 | <!ENTITY proftpd-md5sum "5feb4a7348e12faefc25e34fd92efdd6">
|
---|
[efded64] | 10 | <!ENTITY proftpd-size "901 KB">
|
---|
| 11 | <!ENTITY proftpd-buildsize "7.3 MB">
|
---|
[08254fc] | 12 | <!ENTITY proftpd-time "0.27 SBU">
|
---|
| 13 | ]>
|
---|
| 14 |
|
---|
[1598426] | 15 | <sect1 id="proftpd" xreflabel="ProFTPD-&proftpd-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[1728f4e] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[1728f4e] | 20 |
|
---|
[00bb024c] | 21 | <?dbhtml filename="proftpd.html"?>
|
---|
[1728f4e] | 22 | <title><application>Pro<acronym>FTP</acronym>D</application>-&proftpd-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="proftpd">
|
---|
| 25 | <primary sortas="a-proftpd">Proftpd</primary>
|
---|
| 26 | </indexterm>
|
---|
[1598426] | 27 |
|
---|
[08254fc] | 28 | <sect2>
|
---|
[1728f4e] | 29 | <title>Introduction to <application>Pro<acronym>FTP</acronym>D</application></title>
|
---|
[08254fc] | 30 |
|
---|
[1586494] | 31 | <para>The <application>Pro<acronym>FTP</acronym>D</application> package
|
---|
| 32 | contains a secure and highly configurable <acronym>FTP</acronym> daemon. This
|
---|
| 33 | is useful for serving large file archives over a network.</para>
|
---|
[08254fc] | 34 |
|
---|
[1728f4e] | 35 | <sect3>
|
---|
| 36 | <title>Package information</title>
|
---|
[08254fc] | 37 | <itemizedlist spacing='compact'>
|
---|
[1728f4e] | 38 | <listitem><para>Download (HTTP): <ulink url="&proftpd-download-http;"/></para></listitem>
|
---|
| 39 | <listitem><para>Download (FTP): <ulink url="&proftpd-download-ftp;"/></para></listitem>
|
---|
| 40 | <listitem><para>Download MD5 sum: &proftpd-md5sum;</para></listitem>
|
---|
| 41 | <listitem><para>Download size: &proftpd-size;</para></listitem>
|
---|
| 42 | <listitem><para>Estimated disk space required: &proftpd-buildsize;</para></listitem>
|
---|
| 43 | <listitem><para>Estimated build time: &proftpd-time;</para></listitem>
|
---|
| 44 | </itemizedlist>
|
---|
[08254fc] | 45 | </sect3>
|
---|
| 46 |
|
---|
[1728f4e] | 47 | <sect3>
|
---|
| 48 | <title><application>Pro<acronym>FTP</acronym>D</application> dependencies</title>
|
---|
| 49 |
|
---|
| 50 | <sect4>
|
---|
| 51 | <title>Optional</title>
|
---|
| 52 |
|
---|
[1586494] | 53 | <para><xref linkend="Linux_PAM"/></para>
|
---|
[1728f4e] | 54 |
|
---|
[1586494] | 55 | </sect4>
|
---|
[08254fc] | 56 | </sect3>
|
---|
| 57 |
|
---|
| 58 | </sect2>
|
---|
| 59 |
|
---|
| 60 | <sect2>
|
---|
[1728f4e] | 61 | <title>Installation of <application>Pro<acronym>FTP</acronym>D</application></title>
|
---|
[08254fc] | 62 |
|
---|
[1728f4e] | 63 | <para>For security reasons, you should install
|
---|
| 64 | <application>Pro<acronym>FTP</acronym>D</application> using an unprivileged user
|
---|
| 65 | and group. As the root user:</para>
|
---|
[08254fc] | 66 |
|
---|
| 67 | <screen><userinput><command>groupadd proftpd &&
|
---|
[47603ac1] | 68 | useradd -c proftpd -d /home/ftp -g proftpd \
|
---|
[1728f4e] | 69 | -s /usr/lib/proftpd/proftpdshell proftpd &&
|
---|
| 70 | install -d -m775 -o proftpd -g proftpd /usr/lib/proftpd &&
|
---|
| 71 | ln -s /bin/false /usr/lib/proftpd/proftpdshell &&
|
---|
| 72 | echo /usr/lib/proftpd/proftpdshell >> /etc/shells</command></userinput></screen>
|
---|
[08254fc] | 73 |
|
---|
[1728f4e] | 74 | <para>Install <application>Pro<acronym>FTP</acronym>D</application> as a regular user by running
|
---|
[1586494] | 75 | the following commands:</para>
|
---|
[08254fc] | 76 |
|
---|
| 77 | <screen><userinput><command>install_user=proftpd install_group=proftpd \
|
---|
[39373956] | 78 | ./configure --prefix=/usr --sysconfdir=/etc \
|
---|
| 79 | --localstatedir=/var/run &&
|
---|
[1728f4e] | 80 | make</command></userinput></screen>
|
---|
| 81 |
|
---|
| 82 | <para>Now, again as the root user:</para>
|
---|
| 83 |
|
---|
| 84 | <screen><userinput role='root'><command>make install</command></userinput></screen>
|
---|
[08254fc] | 85 |
|
---|
| 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | <sect2>
|
---|
| 89 | <title>Command explanations</title>
|
---|
| 90 |
|
---|
[1728f4e] | 91 | <para><command>install -d -m775 -o proftpd -g proftpd /usr/lib/proftpd</command>:
|
---|
| 92 | Create the home directory for <application>Pro<acronym>FTP</acronym>D</application>.</para>
|
---|
| 93 |
|
---|
| 94 | <para><command>ln -s /bin/false /usr/lib/proftpd/proftpdshell</command>:
|
---|
| 95 | Set the default shell as a link to a invalid shell.</para>
|
---|
| 96 |
|
---|
| 97 | <para><command>echo /usr/lib/proftpd/proftpdshell >> /etc/shells</command>:
|
---|
| 98 | Fake a valid shell for compatability purposes.</para>
|
---|
| 99 |
|
---|
| 100 | <note><para>The above three commands can be ommitted if the following directive is
|
---|
| 101 | placed in the configuration file:
|
---|
| 102 |
|
---|
| 103 | <screen>RequireValidShell off</screen>
|
---|
| 104 |
|
---|
| 105 | By default, proftpd will require that users logging in have valid shells.
|
---|
| 106 | The RequireValidShell directive turns off this requirement. This is only
|
---|
| 107 | recommended if you are setting up your <acronym>FTP</acronym> server exclusively
|
---|
| 108 | for anonymous downloads.
|
---|
| 109 | </para></note>
|
---|
| 110 |
|
---|
[08254fc] | 111 | <para><parameter>install_user=proftpd install_group=proftpd</parameter>:
|
---|
[1586494] | 112 | Specify the user and group identity for
|
---|
| 113 | <application>Pro<acronym>FTP</acronym>D</application>.</para>
|
---|
[08254fc] | 114 |
|
---|
| 115 | <para><parameter>--sysconfdir=/etc</parameter>:
|
---|
| 116 | This prevents the configuration files from going to
|
---|
| 117 | <filename class="directory">/usr/etc</filename>.</para>
|
---|
| 118 |
|
---|
| 119 | <para><parameter>--localstatedir=/var/run</parameter>:
|
---|
| 120 | This uses <filename class="directory">/var/run</filename> instead of
|
---|
| 121 | <filename class="directory">/usr/var</filename> for lock files.</para>
|
---|
| 122 |
|
---|
| 123 | </sect2>
|
---|
| 124 |
|
---|
| 125 | <sect2>
|
---|
[1586494] | 126 | <title>Configuring <application>Pro<acronym>FTP</acronym>D</application></title>
|
---|
[08254fc] | 127 |
|
---|
[1728f4e] | 128 | <sect3 id='proftpd-init'>
|
---|
| 129 | <title>proftpd init.d script</title>
|
---|
| 130 |
|
---|
| 131 | <indexterm zone="proftpd proftpd-init">
|
---|
| 132 | <primary sortas="f-proftpd">proftpd</primary>
|
---|
| 133 | </indexterm>
|
---|
| 134 |
|
---|
| 135 |
|
---|
[1586494] | 136 | <para>Install the <filename>/etc/rc.d/init.d/proftpd</filename> init script
|
---|
| 137 | included in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
| 138 |
|
---|
[08254fc] | 139 | <screen><userinput><command>make install-proftpd</command></userinput></screen>
|
---|
| 140 |
|
---|
| 141 | </sect3>
|
---|
| 142 |
|
---|
[1728f4e] | 143 | <sect3 id='proftpd-config'>
|
---|
| 144 | <title>Config files</title>
|
---|
| 145 |
|
---|
| 146 | <indexterm zone="proftpd proftpd-config">
|
---|
| 147 | <primary sortas="e-etc-proftpd">/etc/proftpd.conf</primary>
|
---|
| 148 | </indexterm>
|
---|
| 149 |
|
---|
[08254fc] | 150 | <para><filename>/etc/proftpd.conf</filename></para>
|
---|
[1586494] | 151 | </sect3>
|
---|
| 152 |
|
---|
| 153 | <sect3><title>Configuration information</title>
|
---|
| 154 | <para>This is a simple, download-only sample configuration. See the
|
---|
| 155 | <application>Pro<acronym>FTP</acronym>D</application> documentation in
|
---|
| 156 | <filename class="directory">/usr/share/doc/proftpd</filename> and consult the
|
---|
| 157 | website at <ulink url="http://www.proftpd.org/"/> for example
|
---|
| 158 | configurations.</para>
|
---|
[08254fc] | 159 |
|
---|
| 160 | <screen><userinput><command>cat > /etc/proftpd.conf << "EOF"</command>
|
---|
| 161 | # This is a basic ProFTPD configuration file
|
---|
| 162 | # It establishes a single server and a single anonymous login.
|
---|
| 163 |
|
---|
| 164 | ServerName "ProFTPD Default Installation"
|
---|
| 165 | ServerType standalone
|
---|
| 166 | DefaultServer on
|
---|
| 167 |
|
---|
| 168 | # Port 21 is the standard FTP port.
|
---|
| 169 | Port 21
|
---|
| 170 | # Umask 022 is a good standard umask to prevent new dirs and files
|
---|
| 171 | # from being group and world writable.
|
---|
| 172 | Umask 022
|
---|
| 173 |
|
---|
| 174 | # To prevent DoS attacks, set the maximum number of child processes
|
---|
| 175 | # to 30. If you need to allow more than 30 concurrent connections
|
---|
| 176 | # at once, simply increase this value. Note that this ONLY works
|
---|
| 177 | # in standalone mode, in inetd mode you should use an inetd server
|
---|
| 178 | # that allows you to limit maximum number of processes per service
|
---|
| 179 | # (such as xinetd)
|
---|
| 180 | MaxInstances 30
|
---|
| 181 |
|
---|
| 182 | # Set the user and group that the server normally runs at.
|
---|
| 183 | User proftpd
|
---|
| 184 | Group proftpd
|
---|
| 185 |
|
---|
[1586494] | 186 | # Normally, files should be overwritable.
|
---|
[08254fc] | 187 | <Directory /*>
|
---|
| 188 | AllowOverwrite on
|
---|
| 189 | </Directory>
|
---|
| 190 |
|
---|
| 191 | # A basic anonymous configuration, no upload directories.
|
---|
| 192 | <Anonymous ~proftpd>
|
---|
| 193 | User proftpd
|
---|
| 194 | Group proftpd
|
---|
[1586494] | 195 | # Clients should be able to login with "anonymous" as well as "proftpd"
|
---|
[08254fc] | 196 | UserAlias anonymous proftpd
|
---|
| 197 |
|
---|
| 198 | # Limit the maximum number of anonymous logins
|
---|
| 199 | MaxClients 10
|
---|
| 200 |
|
---|
[1586494] | 201 | # 'welcome.msg' should be displayed at login, and '.message' displayed
|
---|
[08254fc] | 202 | # in each newly chdired directory.
|
---|
| 203 | DisplayLogin welcome.msg
|
---|
| 204 | DisplayFirstChdir .message
|
---|
| 205 |
|
---|
| 206 | # Limit WRITE everywhere in the anonymous chroot
|
---|
| 207 | <Limit WRITE>
|
---|
| 208 | DenyAll
|
---|
| 209 | </Limit>
|
---|
| 210 | </Anonymous>
|
---|
| 211 | <command>EOF</command></userinput></screen></sect3>
|
---|
| 212 |
|
---|
| 213 | </sect2>
|
---|
| 214 |
|
---|
| 215 | <sect2>
|
---|
| 216 | <title>Contents</title>
|
---|
| 217 |
|
---|
[1728f4e] | 218 | <segmentedlist>
|
---|
| 219 | <segtitle>Installed Programs</segtitle>
|
---|
| 220 | <segtitle>Installed Libraries</segtitle>
|
---|
| 221 | <segtitle>Installed Directory</segtitle>
|
---|
| 222 |
|
---|
| 223 | <seglistitem>
|
---|
| 224 | <seg>ftpcount, ftpdctl, ftptop, ftpwho, ftpshut, proftpd</seg>
|
---|
| 225 | <seg>None</seg>
|
---|
| 226 | <seg>/var/run/proftpd</seg>
|
---|
| 227 | </seglistitem>
|
---|
| 228 | </segmentedlist>
|
---|
| 229 |
|
---|
| 230 | <variablelist>
|
---|
| 231 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 232 | <?dbfo list-presentation="list"?>
|
---|
| 233 |
|
---|
| 234 | <varlistentry id="proftpd-prog">
|
---|
| 235 | <term><command>proftpd</command></term>
|
---|
| 236 | <listitem>
|
---|
| 237 | <para>is the <acronym>FTP</acronym> daemon.</para>
|
---|
| 238 | <indexterm zone="proftpd proftpd-prog">
|
---|
| 239 | <primary sortas="b-proftpd">proftpd</primary>
|
---|
| 240 | </indexterm>
|
---|
| 241 | </listitem>
|
---|
| 242 | </varlistentry>
|
---|
| 243 |
|
---|
| 244 | <varlistentry id="ftpcount">
|
---|
| 245 | <term><command>ftpcount</command></term>
|
---|
| 246 | <listitem>
|
---|
| 247 | <para>shows the current number of connections.</para>
|
---|
| 248 | <indexterm zone="proftpd ftpcount">
|
---|
| 249 | <primary sortas="b-ftpcount">ftpcount</primary>
|
---|
| 250 | </indexterm>
|
---|
| 251 | </listitem>
|
---|
| 252 | </varlistentry>
|
---|
| 253 |
|
---|
| 254 | <varlistentry id="ftpshut">
|
---|
| 255 | <term><command>ftpshut</command></term>
|
---|
| 256 | <listitem>
|
---|
| 257 | <para>shuts down all <application>proftpd</application> servers at a given time.</para>
|
---|
| 258 | <indexterm zone="proftpd ftpshut">
|
---|
| 259 | <primary sortas="b-ftpshut">ftpshut</primary>
|
---|
| 260 | </indexterm>
|
---|
| 261 | </listitem>
|
---|
| 262 | </varlistentry>
|
---|
| 263 |
|
---|
| 264 | <varlistentry id="ftptop">
|
---|
| 265 | <term><command>ftptop</command></term>
|
---|
| 266 | <listitem>
|
---|
| 267 | <para>displays running status on connections.</para>
|
---|
| 268 | <indexterm zone="proftpd ftptop">
|
---|
| 269 | <primary sortas="b-ftptop">ftptop</primary>
|
---|
| 270 | </indexterm>
|
---|
| 271 | </listitem>
|
---|
| 272 | </varlistentry>
|
---|
| 273 |
|
---|
| 274 | <varlistentry id="ftpwho">
|
---|
| 275 | <term><command>ftpwho</command></term>
|
---|
| 276 | <listitem>
|
---|
| 277 | <para>shows current process information for each session.</para>
|
---|
| 278 | <indexterm zone="proftpd ftpwho">
|
---|
| 279 | <primary sortas="b-ftpwho">ftpwho</primary>
|
---|
| 280 | </indexterm>
|
---|
| 281 | </listitem>
|
---|
| 282 | </varlistentry>
|
---|
| 283 |
|
---|
| 284 | </variablelist>
|
---|
[08254fc] | 285 | </sect2>
|
---|
[1598426] | 286 |
|
---|
| 287 | </sect1>
|
---|
| 288 |
|
---|