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