source: content/web/proftpd/proftpd-config.xml@ 2532d2e

10.0 10.1 11.0 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 ken/refactor-virt krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk v5_1 v5_1-pre1 xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since 2532d2e was 2532d2e, checked in by Larry Lawrence <larry@…>, 18 years ago

modified proftpd's symlinks

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

  • Property mode set to 100644
File size: 4.1 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.org/"/>
10 for example configurations.</para>
11
12<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 overwritable.
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></sect3>
64
65
66<sect3><title>proftpd init.d script</title>
67
68<screen><userinput><command>cat &gt; /etc/rc.d/init.d/proftpd &lt;&lt; "EOF"</command>
69#!/bin/sh
70# Begin $rc_base/init.d/proftpd
71
72# Based on sysklogd script from LFS-3.1 and earlier.
73# Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
74
75. /etc/sysconfig/rc
76. $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/proftpd
111<command>EOF
112chmod 755 /etc/rc.d/init.d/proftpd</command></userinput></screen>
113
114<para>Create the symbolic links to this file in the relevant <filename
115class="directory">rc.d</filename> directories with the following
116commands:</para>
117<screen><userinput><command>cd /etc/rc.d/init.d &amp;&amp;
118ln -sf ../init.d/proftpd ../rc0.d/K28proftpd &amp;&amp;
119ln -sf ../init.d/proftpd ../rc1.d/K28proftpd &amp;&amp;
120ln -sf ../init.d/proftpd ../rc2.d/K28proftpd &amp;&amp;
121ln -sf ../init.d/proftpd ../rc3.d/S32proftpd &amp;&amp;
122ln -sf ../init.d/proftpd ../rc4.d/S32proftpd &amp;&amp;
123ln -sf ../init.d/proftpd ../rc5.d/S32proftpd &amp;&amp;
124ln -sf ../init.d/proftpd ../rc6.d/K28proftpd</command></userinput></screen>
125
126</sect3>
127
128</sect2>
Note: See TracBrowser for help on using the repository browser.