source: content/web/proftpd/proftpd-config.xml@ fe88f584

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb v5_1 v5_1-pre1 xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since fe88f584 was fe88f584, checked in by Tushar Teredesai <tushar@…>, 20 years ago

Completed lfs-bootscripts changes

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@1942 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.7 KB
RevLine 
[1598426]1<sect2>
2<title>Configuring <application>ProFTPD</application></title>
3
[fe88f584]4<sect3><title>proftpd init.d script</title>
5<para>Install <filename>/etc/rc.d/init.d/proftpd</filename>
6init 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
[1598426]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
16documentation in <filename class="directory">/usr/share/doc/proftpd</filename>
[fb02823]17and consult the website at <ulink url="http://www.proftpd.org/"/>
[1598426]18 for example configurations.</para>
19
[a75063d4]20<screen><userinput><command>cat &gt; /etc/proftpd.conf &lt;&lt; "EOF"</command>
[1598426]21# This is a basic ProFTPD configuration file
22# It establishes a single server and a single anonymous login.
23
[fb02823]24ServerName "ProFTPD Default Installation"
25ServerType standalone
26DefaultServer on
[1598426]27
28# Port 21 is the standard FTP port.
[fb02823]29Port 21
[1598426]30# Umask 022 is a good standard umask to prevent new dirs and files
31# from being group and world writable.
[fb02823]32Umask 022
[1598426]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)
[fb02823]40MaxInstances 30
[1598426]41
42# Set the user and group that the server normally runs at.
[fb02823]43User proftpd
44Group proftpd
[1598426]45
[a4be499]46# Normally, we want files to be overwritable.
[1598426]47&lt;Directory /*&gt;
[fb02823]48 AllowOverwrite on
[1598426]49&lt;/Directory&gt;
50
51# A basic anonymous configuration, no upload directories.
52&lt;Anonymous ~proftpd&gt;
[fb02823]53 User proftpd
54 Group proftpd
[1598426]55 # We want clients to be able to login with "anonymous" as well as "proftpd"
[fb02823]56 UserAlias anonymous proftpd
[1598426]57
58 # Limit the maximum number of anonymous logins
[fb02823]59 MaxClients 10
[1598426]60
61 # We want 'welcome.msg' displayed at login, and '.message' displayed
62 # in each newly chdired directory.
[fb02823]63 DisplayLogin welcome.msg
64 DisplayFirstChdir .message
[1598426]65
66 # Limit WRITE everywhere in the anonymous chroot
67 &lt;Limit WRITE&gt;
68 DenyAll
69 &lt;/Limit&gt;
70&lt;/Anonymous&gt;
[a75063d4]71<command>EOF</command></userinput></screen></sect3>
[1598426]72
73
74</sect2>
Note: See TracBrowser for help on using the repository browser.