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