Ignore:
Timestamp:
06/12/2004 11:57:50 PM (20 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
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, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
Children:
0931098
Parents:
d3edf27
Message:

New XML - Part VII

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • content/web/proftpd.xml

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