[08254fc] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 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>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[00bb024c] | 20 | <?dbhtml filename="proftpd.html"?>
|
---|
[7bc4c361] | 21 | <title><application>Pro<acronym>FTP</acronym>D</application>-&proftpd-version;
|
---|
| 22 | </title>
|
---|
[1598426] | 23 |
|
---|
[08254fc] | 24 | <sect2>
|
---|
[1586494] | 25 | <title>Introduction to
|
---|
| 26 | <application>Pro<acronym>FTP</acronym>D</application></title>
|
---|
[08254fc] | 27 |
|
---|
[1586494] | 28 | <para>The <application>Pro<acronym>FTP</acronym>D</application> package
|
---|
| 29 | contains a secure and highly configurable <acronym>FTP</acronym> daemon. This
|
---|
| 30 | is useful for serving large file archives over a network.</para>
|
---|
[08254fc] | 31 |
|
---|
| 32 | <sect3><title>Package information</title>
|
---|
| 33 | <itemizedlist spacing='compact'>
|
---|
[1586494] | 34 | <listitem><para>Download (HTTP):
|
---|
| 35 | <ulink url="&proftpd-download-http;"/></para></listitem>
|
---|
| 36 | <listitem><para>Download (FTP):
|
---|
| 37 | <ulink url="&proftpd-download-ftp;"/></para></listitem>
|
---|
[7bc4c361] | 38 | <listitem><para>Download MD5 sum: &proftpd-md5sum;</para></listitem>
|
---|
[08254fc] | 39 | <listitem><para>Download size: &proftpd-size;</para></listitem>
|
---|
[1586494] | 40 | <listitem><para>Estimated disk space required:
|
---|
| 41 | &proftpd-buildsize;</para></listitem>
|
---|
| 42 | <listitem><para>Estimated build time:
|
---|
| 43 | &proftpd-time;</para></listitem></itemizedlist>
|
---|
[08254fc] | 44 | </sect3>
|
---|
| 45 |
|
---|
[1586494] | 46 | <sect3><title><application>Pro<acronym>FTP</acronym>D</application>
|
---|
| 47 | dependencies</title>
|
---|
[08254fc] | 48 | <sect4><title>Optional</title>
|
---|
[1586494] | 49 | <para><xref linkend="Linux_PAM"/></para>
|
---|
| 50 | </sect4>
|
---|
[08254fc] | 51 | </sect3>
|
---|
| 52 |
|
---|
| 53 | </sect2>
|
---|
| 54 |
|
---|
| 55 | <sect2>
|
---|
[1586494] | 56 | <title>Installation of
|
---|
| 57 | <application>Pro<acronym>FTP</acronym>D</application></title>
|
---|
[08254fc] | 58 |
|
---|
[1586494] | 59 | <para>For security reasons, running
|
---|
| 60 | <application>Pro<acronym>FTP</acronym>D</application> as an unprivileged user
|
---|
| 61 | and group using its own login shell is encouraged.</para>
|
---|
[08254fc] | 62 |
|
---|
| 63 | <screen><userinput><command>groupadd proftpd &&
|
---|
[78bec65e] | 64 | ln -s false /usr/lib/proftpd/proftpdshell &&
|
---|
| 65 | echo /usr/lib/proftpd/proftpdshell >> /etc/shells &&
|
---|
[47603ac1] | 66 | useradd -c proftpd -d /home/ftp -g proftpd \
|
---|
| 67 | -s /usr/lib/proftpd/proftpdshell proftpd</command>
|
---|
[08254fc] | 68 | </userinput></screen>
|
---|
| 69 |
|
---|
[1586494] | 70 | <para>Install <application>Pro<acronym>FTP</acronym>D</application> by running
|
---|
| 71 | the following commands:</para>
|
---|
[08254fc] | 72 |
|
---|
| 73 | <screen><userinput><command>install_user=proftpd install_group=proftpd \
|
---|
[39373956] | 74 | ./configure --prefix=/usr --sysconfdir=/etc \
|
---|
| 75 | --localstatedir=/var/run &&
|
---|
[08254fc] | 76 | make &&
|
---|
| 77 | make install </command></userinput></screen>
|
---|
| 78 |
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2>
|
---|
| 82 | <title>Command explanations</title>
|
---|
| 83 |
|
---|
| 84 | <para><parameter>install_user=proftpd install_group=proftpd</parameter>:
|
---|
[1586494] | 85 | Specify the user and group identity for
|
---|
| 86 | <application>Pro<acronym>FTP</acronym>D</application>.</para>
|
---|
[08254fc] | 87 |
|
---|
| 88 | <para><parameter>--sysconfdir=/etc</parameter>:
|
---|
| 89 | This prevents the configuration files from going to
|
---|
| 90 | <filename class="directory">/usr/etc</filename>.</para>
|
---|
| 91 |
|
---|
| 92 | <para><parameter>--localstatedir=/var/run</parameter>:
|
---|
| 93 | This uses <filename class="directory">/var/run</filename> instead of
|
---|
| 94 | <filename class="directory">/usr/var</filename> for lock files.</para>
|
---|
| 95 |
|
---|
| 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2>
|
---|
[1586494] | 99 | <title>Configuring <application>Pro<acronym>FTP</acronym>D</application></title>
|
---|
[08254fc] | 100 |
|
---|
| 101 | <sect3><title>proftpd init.d script</title>
|
---|
[1586494] | 102 | <para>Install the <filename>/etc/rc.d/init.d/proftpd</filename> init script
|
---|
| 103 | included in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
| 104 |
|
---|
[08254fc] | 105 | <screen><userinput><command>make install-proftpd</command></userinput></screen>
|
---|
| 106 |
|
---|
| 107 | </sect3>
|
---|
| 108 |
|
---|
| 109 | <sect3><title>Config files</title>
|
---|
| 110 | <para><filename>/etc/proftpd.conf</filename></para>
|
---|
[1586494] | 111 | </sect3>
|
---|
| 112 |
|
---|
| 113 | <sect3><title>Configuration information</title>
|
---|
| 114 | <para>This is a simple, download-only sample configuration. See the
|
---|
| 115 | <application>Pro<acronym>FTP</acronym>D</application> documentation in
|
---|
| 116 | <filename class="directory">/usr/share/doc/proftpd</filename> and consult the
|
---|
| 117 | website at <ulink url="http://www.proftpd.org/"/> for example
|
---|
| 118 | configurations.</para>
|
---|
[08254fc] | 119 |
|
---|
| 120 | <screen><userinput><command>cat > /etc/proftpd.conf << "EOF"</command>
|
---|
| 121 | # This is a basic ProFTPD configuration file
|
---|
| 122 | # It establishes a single server and a single anonymous login.
|
---|
| 123 |
|
---|
| 124 | ServerName "ProFTPD Default Installation"
|
---|
| 125 | ServerType standalone
|
---|
| 126 | DefaultServer on
|
---|
| 127 |
|
---|
| 128 | # Port 21 is the standard FTP port.
|
---|
| 129 | Port 21
|
---|
| 130 | # Umask 022 is a good standard umask to prevent new dirs and files
|
---|
| 131 | # from being group and world writable.
|
---|
| 132 | Umask 022
|
---|
| 133 |
|
---|
| 134 | # To prevent DoS attacks, set the maximum number of child processes
|
---|
| 135 | # to 30. If you need to allow more than 30 concurrent connections
|
---|
| 136 | # at once, simply increase this value. Note that this ONLY works
|
---|
| 137 | # in standalone mode, in inetd mode you should use an inetd server
|
---|
| 138 | # that allows you to limit maximum number of processes per service
|
---|
| 139 | # (such as xinetd)
|
---|
| 140 | MaxInstances 30
|
---|
| 141 |
|
---|
| 142 | # Set the user and group that the server normally runs at.
|
---|
| 143 | User proftpd
|
---|
| 144 | Group proftpd
|
---|
| 145 |
|
---|
[1586494] | 146 | # Normally, files should be overwritable.
|
---|
[08254fc] | 147 | <Directory /*>
|
---|
| 148 | AllowOverwrite on
|
---|
| 149 | </Directory>
|
---|
| 150 |
|
---|
| 151 | # A basic anonymous configuration, no upload directories.
|
---|
| 152 | <Anonymous ~proftpd>
|
---|
| 153 | User proftpd
|
---|
| 154 | Group proftpd
|
---|
[1586494] | 155 | # Clients should be able to login with "anonymous" as well as "proftpd"
|
---|
[08254fc] | 156 | UserAlias anonymous proftpd
|
---|
| 157 |
|
---|
| 158 | # Limit the maximum number of anonymous logins
|
---|
| 159 | MaxClients 10
|
---|
| 160 |
|
---|
[1586494] | 161 | # 'welcome.msg' should be displayed at login, and '.message' displayed
|
---|
[08254fc] | 162 | # in each newly chdired directory.
|
---|
| 163 | DisplayLogin welcome.msg
|
---|
| 164 | DisplayFirstChdir .message
|
---|
| 165 |
|
---|
| 166 | # Limit WRITE everywhere in the anonymous chroot
|
---|
| 167 | <Limit WRITE>
|
---|
| 168 | DenyAll
|
---|
| 169 | </Limit>
|
---|
| 170 | </Anonymous>
|
---|
| 171 | <command>EOF</command></userinput></screen></sect3>
|
---|
| 172 |
|
---|
| 173 | </sect2>
|
---|
| 174 |
|
---|
| 175 | <sect2>
|
---|
| 176 | <title>Contents</title>
|
---|
| 177 |
|
---|
[1586494] | 178 | <para>The <application>Pro<acronym>FTP</acronym>D</application> package contains
|
---|
[08254fc] | 179 | <command>ftpcount</command>, <command>ftpshut</command>,
|
---|
| 180 | <command>ftptop</command>, <command>ftpwho</command> and
|
---|
| 181 | <command>proftpd</command>.</para>
|
---|
| 182 |
|
---|
| 183 | </sect2>
|
---|
| 184 |
|
---|
| 185 | <sect2><title>Description</title>
|
---|
| 186 |
|
---|
| 187 | <sect3><title>ftpcount</title>
|
---|
[1586494] | 188 | <para><command>ftpcount</command> shows the current number of
|
---|
| 189 | connections.</para></sect3>
|
---|
[08254fc] | 190 |
|
---|
| 191 | <sect3><title>ftpshut</title>
|
---|
[1586494] | 192 | <para><command>ftpshut</command> shuts down all <command>proftpd</command>
|
---|
| 193 | servers at a given time.</para></sect3>
|
---|
[08254fc] | 194 |
|
---|
| 195 | <sect3><title>ftptop</title>
|
---|
[1586494] | 196 | <para><command>ftptop</command> displays running status on
|
---|
| 197 | connections.</para></sect3>
|
---|
[08254fc] | 198 |
|
---|
| 199 | <sect3><title>ftpwho</title>
|
---|
| 200 | <para><command>ftpwho</command> shows current process information for
|
---|
| 201 | each session.</para></sect3>
|
---|
| 202 |
|
---|
| 203 | <sect3><title>proftpd</title>
|
---|
[1586494] | 204 | <para><command>proftpd</command> is the <acronym>FTP</acronym>
|
---|
| 205 | daemon.</para></sect3>
|
---|
[08254fc] | 206 |
|
---|
| 207 | </sect2>
|
---|
[1598426] | 208 |
|
---|
| 209 | </sect1>
|
---|
| 210 |
|
---|