cvs commit: BLFS/BOOK/content/web/proftpd proftpd-config.xml proftpd-desc.xml proftpd-exp.xml proftpd-inst.xml proftpd-intro.xml proftpd.ent

larry at larry at
Wed Jul 30 17:56:25 PDT 2003

larry       03/07/30 18:56:25

  Modified:    BOOK/content content.ent
               BOOK/content/web web.xml
  Added:       BOOK/content/web proftpd.xml
               BOOK/content/web/proftpd proftpd-config.xml proftpd-desc.xml
                        proftpd-exp.xml proftpd-inst.xml proftpd-intro.xml
  added proftpd-1.2.8
  Revision  Changes    Path
  1.5       +2 -0      BLFS/BOOK/content/content.ent
  Index: content.ent
  RCS file: /home/cvsroot/BLFS/BOOK/content/content.ent,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- content.ent	16 Apr 2003 02:59:21 -0000	1.4
  +++ content.ent	31 Jul 2003 00:56:25 -0000	1.5
  @@ -15,5 +15,7 @@
   <!ENTITY content-web SYSTEM "web/web.xml">
   <!ENTITY % apache SYSTEM "web/apache/apache.ent">
   <!ENTITY % php SYSTEM "web/php/php.ent">
  +<!ENTITY % proftpd SYSTEM "web/proftpd/proftpd.ent">
  1.4       +1 -0      BLFS/BOOK/content/web/web.xml
  Index: web.xml
  RCS file: /home/cvsroot/BLFS/BOOK/content/web/web.xml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- web.xml	27 Apr 2003 01:17:18 -0000	1.3
  +++ web.xml	31 Jul 2003 00:56:25 -0000	1.4
  @@ -4,5 +4,6 @@
  1.1                  BLFS/BOOK/content/web/proftpd.xml
  Index: proftpd.xml
  <sect1 id="proftpd" xreflabel="ProFTPD-&proftpd-version;">
  <?dbhtml filename="proftpd.html" dir="content"?>
  1.1                  BLFS/BOOK/content/web/proftpd/proftpd-config.xml
  Index: proftpd-config.xml
  <title>Configuring <application>ProFTPD</application></title>
  <sect3><title>Config files</title>
  <para>This is a simple, download-only sample configuration. See the ProFTPD
  documentation in <filename class="directory">/usr/share/doc/proftpd</filename>
  and consult the website at <ulink url=""/>
   for example configurations.</para>
  <para><screen><userinput><command>cat > /etc/proftpd.conf << "EOF"</command>
  # This is a basic ProFTPD configuration file
  # It establishes a single server and a single anonymous login.
  ServerName			"ProFTPD Default Installation"
  ServerType			standalone
  DefaultServer			on
  # Port 21 is the standard FTP port.
  Port				21
  # Umask 022 is a good standard umask to prevent new dirs and files
  # from being group and world writable.
  Umask				022
  # To prevent DoS attacks, set the maximum number of child processes
  # to 30.  If you need to allow more than 30 concurrent connections
  # at once, simply increase this value.  Note that this ONLY works
  # in standalone mode, in inetd mode you should use an inetd server
  # that allows you to limit maximum number of processes per service
  # (such as xinetd)
  MaxInstances			30
  # Set the user and group that the server normally runs at.
  User				proftpd
  Group				proftpd
  # Normally, we want files to be overwriteable.
  <Directory /*>
    AllowOverwrite		on
  # A basic anonymous configuration, no upload directories.
  <Anonymous ~proftpd>
    User				proftpd
    Group				proftpd
    # We want clients to be able to login with "anonymous" as well as "proftpd"
    UserAlias			anonymous proftpd
    # Limit the maximum number of anonymous logins
    MaxClients			10
    # We want 'welcome.msg' displayed at login, and '.message' displayed
    # in each newly chdired directory.
    DisplayLogin			welcome.msg
    DisplayFirstChdir		.message
    # Limit WRITE everywhere in the anonymous chroot
    <Limit WRITE>
  <sect3><title>proftpd init.d script</title>
  <para><screen><userinput><command>cat > /etc/rc.d/init.d/proftp << "EOF"</command>
  # Begin $rc_base/init.d/sshd
  # Based on sysklogd script from LFS-3.1 and earlier.
  # Rewritten by Gerard Beekmans  - gerard at
  source /etc/sysconfig/rc
  source $rc_functions
  case "$1" in
  	        echo "Starting FTP Server..."
  	        loadproc /usr/sbin/proftpd
  	        echo "Stopping FTP Server..."
  	        killproc /usr/sbin/proftpd
  	        echo "Reloading FTP Server..."
  	        reloadproc /usr/sbin/proftpd
  	        $0 stop
  	        sleep 1
  	        $0 start
  	        statusproc /usr/sbin/proftpd
  	        echo "Usage: $0 {start|stop|reload|restart|status}"
  	        exit 1
  # End $rc_base/init.d/sshd
  chmod 755 /etc/rc.d/init.d/proftpd</command></userinput></screen></para>
  <para>Create the symbolic links to this file in the relevant <filename
  class="directory">rc.d</filename> directories with the following commands:
  <screen><userinput><command>cd /etc/rc.d/init.d &&
  ln -sf ../init.d/proftpd ../rc0.d/K50proftpd &&
  ln -sf ../init.d/proftpd ../rc1.d/K50proftpd &&
  ln -sf ../init.d/proftpd ../rc2.d/K50proftpd &&
  ln -sf ../init.d/proftpd ../rc3.d/S50proftpd &&
  ln -sf ../init.d/proftpd ../rc4.d/S50proftpd &&
  ln -sf ../init.d/proftpd ../rc5.d/S50proftpd &&
  ln -sf ../init.d/proftpd ../rc6.d/K50proftpd</command></userinput></screen></para>
  1.1                  BLFS/BOOK/content/web/proftpd/proftpd-desc.xml
  Index: proftpd-desc.xml
  <para>The <application>ProFTPD</application> package contains
  <command>ftpcount</command>, <command>ftpshut</command>,
  <command>ftptop</command>, <command>ftpwho</command> and
  <para><command>ftpcount</command> shows current number of connections.</para></sect3>
  <para><command>ftpshut</command> shuts down all proftpd servers at a
  given time.</para></sect3>
  <para><command>ftptop</command> displays running status on connections.</para></sect3>
  <para><command>ftpwho</command> shows current process information for
  each session.</para></sect3>
  <para><command>proftpd</command> the deamon itself.</para></sect3>
  1.1                  BLFS/BOOK/content/web/proftpd/proftpd-exp.xml
  Index: proftpd-exp.xml
  <title>Command explanations</title>
  <para><command>install_user=proftpd install_groud=proftpd</command>
  : Specify the user and group identity for ProFTPD.</para>
  : This installs ProFTPD in <filename class="directory">/usr</filename>
  instead of <filename class="directory">/usr/local</filename>.</para>
  : This prevents the configuration files from going to
  <filename class="directory">/usr/etc</filename>.</para>
  : This uses <filename class="directory">/var</filename> instead of
  <filename class="directory">/usr/var</filename> for lock and log files.</para>
  1.1                  BLFS/BOOK/content/web/proftpd/proftpd-inst.xml
  Index: proftpd-inst.xml
  <title>Installation of <application>ProFTPD</application></title>
  <para>For security reasons, running <application>ProFTPD</application>
  as an unpriviledged user and group is encouraged.</para>
  <para><screen><userinput><command>groupadd proftpd &&
  useradd -c proftd -d /home/ftp -g proftpd -s /bin/false proftpd</command>
  <para>Install ProFTPD by running the following commands:</para>
  <para><screen><userinput><command>install_user=proftpd install_group=proftpd \
     ./configure --prefix=/usr --sysconfdir=/etc \
     --localstatedir=/var &&
  make &&
  make install </command></userinput></screen></para>
  1.1                  BLFS/BOOK/content/web/proftpd/proftpd-intro.xml
  Index: proftpd-intro.xml
  <title>Introduction to ProFTPD</title>
  <para>The <application>ProFTPD</application> package contains a secure and
  highly configurable FTP daemon. This is useful for serving large file archives
  over a network.</para>
  <sect3><title>Package information</title>
  <itemizedlist spacing='compact'>
  <listitem><para>Download (HTTP):<ulink url="&proftpd-download-http;"/></para></listitem>
  <listitem><para>Download (FTP): <ulink url="&proftpd-download-ftp;"/></para></listitem>
  <listitem><para>Download size: &proftpd-size;</para></listitem>
  <listitem><para>Estimated Disk space required: &proftpd-buildsize;</para></listitem>
  <listitem><para>Estimated build time: &proftpd-time;</para></listitem></itemizedlist>
  <sect3><title><application>ProFTPD</application> dependencies</title>
  <para><xref linkend="Linux_PAM"/></para></sect4>
  1.1                  BLFS/BOOK/content/web/proftpd/proftpd.ent
  Index: proftpd.ent
  <!ENTITY proftpd SYSTEM "../proftpd.xml">
  <!ENTITY proftpd-intro SYSTEM "proftpd-intro.xml">
  <!ENTITY proftpd-inst SYSTEM "proftpd-inst.xml">
  <!ENTITY proftpd-exp SYSTEM "proftpd-exp.xml">
  <!ENTITY proftpd-desc SYSTEM "proftpd-desc.xml">
  <!ENTITY proftpd-config SYSTEM "proftpd-config.xml">
  <!ENTITY proftpd-buildsize "6.2 MB">
  <!ENTITY proftpd-version "1.2.8">
  <!ENTITY proftpd-download-http "">
  <!ENTITY proftpd-download-ftp ";.tar.bz2">
  <!ENTITY proftpd-size "0.7 MB">
  <!ENTITY proftpd-time "0.6 SBU">

More information about the blfs-book mailing list