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

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 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 gimp3 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_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since c8181ac was c8181ac, checked in by Larry Lawrence <larry@…>, 21 years ago

fixes from blfs-dev

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

  • Property mode set to 100644
File size: 3.6 KB
Line 
1<sect2>
2<title>Configuring <application>ProFTPD</application></title>
3
4<sect3><title>Config files</title>
5
6<para><filename>/etc/proftpd.conf</filename></para>
7<para>This is a simple, download-only sample configuration. See the ProFTPD
8documentation in <filename class="directory">/usr/share/doc/proftpd</filename>
9and consult the website at <ulink url="http://www.proftpd.net/"/>
10 for example configurations.</para>
11
12<para><screen><userinput><command>cat &gt; /etc/proftpd.conf &lt;&lt; "EOF"</command>
13# This is a basic ProFTPD configuration file
14# It establishes a single server and a single anonymous login.
15
16ServerName "ProFTPD Default Installation"
17ServerType standalone
18DefaultServer on
19
20# Port 21 is the standard FTP port.
21Port 21
22# Umask 022 is a good standard umask to prevent new dirs and files
23# from being group and world writable.
24Umask 022
25
26# To prevent DoS attacks, set the maximum number of child processes
27# to 30. If you need to allow more than 30 concurrent connections
28# at once, simply increase this value. Note that this ONLY works
29# in standalone mode, in inetd mode you should use an inetd server
30# that allows you to limit maximum number of processes per service
31# (such as xinetd)
32MaxInstances 30
33
34# Set the user and group that the server normally runs at.
35User proftpd
36Group proftpd
37
38# Normally, we want files to be overwriteable.
39&lt;Directory /*&gt;
40 AllowOverwrite on
41&lt;/Directory&gt;
42
43# A basic anonymous configuration, no upload directories.
44&lt;Anonymous ~proftpd&gt;
45 User proftpd
46 Group proftpd
47 # We want clients to be able to login with "anonymous" as well as "proftpd"
48 UserAlias anonymous proftpd
49
50 # Limit the maximum number of anonymous logins
51 MaxClients 10
52
53 # We want 'welcome.msg' displayed at login, and '.message' displayed
54 # in each newly chdired directory.
55 DisplayLogin welcome.msg
56 DisplayFirstChdir .message
57
58 # Limit WRITE everywhere in the anonymous chroot
59 &lt;Limit WRITE&gt;
60 DenyAll
61 &lt;/Limit&gt;
62&lt;/Anonymous&gt;
63<command>EOF</command></userinput></screen></para></sect3>
64
65
66<sect3><title>proftpd init.d script</title>
67
68<para><screen><userinput><command>cat &gt; /etc/rc.d/init.d/proftp &lt;&lt; "EOF"</command>
69#!/bin/sh
70# Begin $rc_base/init.d/proftp
71
72# Based on sysklogd script from LFS-3.1 and earlier.
73# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
74
75source /etc/sysconfig/rc
76source $rc_functions
77
78case "$1" in
79 start)
80 echo "Starting FTP Server..."
81 loadproc /usr/sbin/proftpd
82 ;;
83
84 stop)
85 echo "Stopping FTP Server..."
86 killproc /usr/sbin/proftpd
87 ;;
88
89 reload)
90 echo "Reloading FTP Server..."
91 reloadproc /usr/sbin/proftpd
92 ;;
93
94 restart)
95 $0 stop
96 sleep 1
97 $0 start
98 ;;
99
100 status)
101 statusproc /usr/sbin/proftpd
102 ;;
103
104 *)
105 echo "Usage: $0 {start|stop|reload|restart|status}"
106 exit 1
107 ;;
108esac
109
110# End $rc_base/init.d/proftp
111<command>EOF
112chmod 755 /etc/rc.d/init.d/proftp</command></userinput></screen></para>
113
114<para>Create the symbolic links to this file in the relevant <filename
115class="directory">rc.d</filename> directories with the following commands:
116<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
117ln -sf ../init.d/proftp ../rc0.d/K50proftp &amp;&amp;
118ln -sf ../init.d/proftp ../rc1.d/K50proftp &amp;&amp;
119ln -sf ../init.d/proftp ../rc2.d/K50proftp &amp;&amp;
120ln -sf ../init.d/proftp ../rc3.d/S50proftp &amp;&amp;
121ln -sf ../init.d/proftp ../rc4.d/S50proftp &amp;&amp;
122ln -sf ../init.d/proftp ../rc5.d/S50proftp &amp;&amp;
123ln -sf ../init.d/proftp ../rc6.d/K50proftp</command></userinput></screen></para>
124
125</sect3>
126
127</sect2>
128
Note: See TracBrowser for help on using the repository browser.