1 | <sect2>
|
---|
2 | <title>Configuring <application>ProFTPD</application></title>
|
---|
3 |
|
---|
4 | <sect3><title>proftpd init.d script</title>
|
---|
5 | <para>Install <filename>/etc/rc.d/init.d/proftpd</filename>
|
---|
6 | init script included in the <xref linkend="intro-important-bootscripts"/> package.</para>
|
---|
7 |
|
---|
8 | <screen><userinput><command>make install-proftpd</command></userinput></screen>
|
---|
9 |
|
---|
10 | </sect3>
|
---|
11 |
|
---|
12 | <sect3><title>Config files</title>
|
---|
13 |
|
---|
14 | <para><filename>/etc/proftpd.conf</filename></para>
|
---|
15 | <para>This is a simple, download-only sample configuration. See the ProFTPD
|
---|
16 | documentation in <filename class="directory">/usr/share/doc/proftpd</filename>
|
---|
17 | and consult the website at <ulink url="http://www.proftpd.org/"/>
|
---|
18 | for example configurations.</para>
|
---|
19 |
|
---|
20 | <screen><userinput><command>cat > /etc/proftpd.conf << "EOF"</command>
|
---|
21 | # This is a basic ProFTPD configuration file
|
---|
22 | # It establishes a single server and a single anonymous login.
|
---|
23 |
|
---|
24 | ServerName "ProFTPD Default Installation"
|
---|
25 | ServerType standalone
|
---|
26 | DefaultServer on
|
---|
27 |
|
---|
28 | # Port 21 is the standard FTP port.
|
---|
29 | Port 21
|
---|
30 | # Umask 022 is a good standard umask to prevent new dirs and files
|
---|
31 | # from being group and world writable.
|
---|
32 | Umask 022
|
---|
33 |
|
---|
34 | # To prevent DoS attacks, set the maximum number of child processes
|
---|
35 | # to 30. If you need to allow more than 30 concurrent connections
|
---|
36 | # at once, simply increase this value. Note that this ONLY works
|
---|
37 | # in standalone mode, in inetd mode you should use an inetd server
|
---|
38 | # that allows you to limit maximum number of processes per service
|
---|
39 | # (such as xinetd)
|
---|
40 | MaxInstances 30
|
---|
41 |
|
---|
42 | # Set the user and group that the server normally runs at.
|
---|
43 | User proftpd
|
---|
44 | Group proftpd
|
---|
45 |
|
---|
46 | # Normally, we want files to be overwritable.
|
---|
47 | <Directory /*>
|
---|
48 | AllowOverwrite on
|
---|
49 | </Directory>
|
---|
50 |
|
---|
51 | # A basic anonymous configuration, no upload directories.
|
---|
52 | <Anonymous ~proftpd>
|
---|
53 | User proftpd
|
---|
54 | Group proftpd
|
---|
55 | # We want clients to be able to login with "anonymous" as well as "proftpd"
|
---|
56 | UserAlias anonymous proftpd
|
---|
57 |
|
---|
58 | # Limit the maximum number of anonymous logins
|
---|
59 | MaxClients 10
|
---|
60 |
|
---|
61 | # We want 'welcome.msg' displayed at login, and '.message' displayed
|
---|
62 | # in each newly chdired directory.
|
---|
63 | DisplayLogin welcome.msg
|
---|
64 | DisplayFirstChdir .message
|
---|
65 |
|
---|
66 | # Limit WRITE everywhere in the anonymous chroot
|
---|
67 | <Limit WRITE>
|
---|
68 | DenyAll
|
---|
69 | </Limit>
|
---|
70 | </Anonymous>
|
---|
71 | <command>EOF</command></userinput></screen></sect3>
|
---|
72 |
|
---|
73 |
|
---|
74 | </sect2>
|
---|