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 linuxfromscratch.org larry at linuxfromscratch.org
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
                        proftpd.ent
  Log:
  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">
   %apache;
   %php;
  +%proftpd;
  
  
  
  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 @@
   
   &apache;
   &php; 
  +&proftpd;
   
   </chapter>
  
  
  
  1.1                  BLFS/BOOK/content/web/proftpd.xml
  
  Index: proftpd.xml
  ===================================================================
  <sect1 id="proftpd" xreflabel="ProFTPD-&proftpd-version;">
  <?dbhtml filename="proftpd.html" dir="content"?>
  <title>ProFTPD-&proftpd-version;</title>
  
  &proftpd-intro;
  &proftpd-inst;
  &proftpd-exp;
  &proftpd-config;
  &proftpd-desc;
  
  </sect1>
  
  
  
  
  1.1                  BLFS/BOOK/content/web/proftpd/proftpd-config.xml
  
  Index: proftpd-config.xml
  ===================================================================
  <sect2>
  <title>Configuring <application>ProFTPD</application></title>
  
  <sect3><title>Config files</title>
  
  <para><filename>/etc/proftpd.conf</filename></para>
  <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="http://www.proftpd.net/"/>
   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
  </Directory>
  
  # 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>
      DenyAll
    </Limit>
  </Anonymous>
  <command>EOF</command></userinput></screen></para></sect3>
  
  
  <sect3><title>proftpd init.d script</title>
  
  <para><screen><userinput><command>cat > /etc/rc.d/init.d/proftp << "EOF"</command>
  #!/bin/sh
  # Begin $rc_base/init.d/sshd
  
  # Based on sysklogd script from LFS-3.1 and earlier.
  # Rewritten by Gerard Beekmans  - gerard at linuxfromscratch.org
  
  source /etc/sysconfig/rc
  source $rc_functions
  
  case "$1" in
          start)
  	        echo "Starting FTP Server..."
  	        loadproc /usr/sbin/proftpd
  	        ;;
  
  	stop)
  	        echo "Stopping FTP Server..."
  	        killproc /usr/sbin/proftpd
  	        ;;
  
  	reload)
  	        echo "Reloading FTP Server..."
  	        reloadproc /usr/sbin/proftpd
  	        ;;
  	     
  	restart)
  	        $0 stop
  	        sleep 1
  	        $0 start
  	        ;;
  
  	status)
  	        statusproc /usr/sbin/proftpd
  	        ;;
  
  	*)
  	        echo "Usage: $0 {start|stop|reload|restart|status}"
  	        exit 1
  	        ;;
  esac
  
  # End $rc_base/init.d/sshd
  <command>EOF
  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>
  
  </sect3>
  
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/content/web/proftpd/proftpd-desc.xml
  
  Index: proftpd-desc.xml
  ===================================================================
  <sect2>
  <title>Contents</title>
  
  <para>The <application>ProFTPD</application> package contains
  <command>ftpcount</command>, <command>ftpshut</command>,
  <command>ftptop</command>, <command>ftpwho</command> and
  <command>proftpd</command>.</para>
  
  </sect2>
  
  <sect2><title>Description</title>
  
  <sect3><title>ftpcount</title>
  <para><command>ftpcount</command> shows current number of connections.</para></sect3>
  
  <sect3><title>ftpshut</title>
  <para><command>ftpshut</command> shuts down all proftpd servers at a
  given time.</para></sect3>
  
  <sect3><title>ftptop</title>
  <para><command>ftptop</command> displays running status on connections.</para></sect3>
  
  <sect3><title>ftpwho</title>
  <para><command>ftpwho</command> shows current process information for
  each session.</para></sect3>
  
  <sect3><title>proftpd</title>
  <para><command>proftpd</command> the deamon itself.</para></sect3>
  
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/content/web/proftpd/proftpd-exp.xml
  
  Index: proftpd-exp.xml
  ===================================================================
  <sect2>
  <title>Command explanations</title>
  
  <para><command>install_user=proftpd install_groud=proftpd</command>
  : Specify the user and group identity for ProFTPD.</para>
  
  <para><command>--prefix=/usr</command>
  : This installs ProFTPD in <filename class="directory">/usr</filename>
  instead of <filename class="directory">/usr/local</filename>.</para>
  
  <para><command>--sysconfigdir=/etc</command>
  : This prevents the configuration files from going to
  <filename class="directory">/usr/etc</filename>.</para>
  
  <para><command>--localstatedir=/var</command>
  : This uses <filename class="directory">/var</filename> instead of
  <filename class="directory">/usr/var</filename> for lock and log files.</para>
  
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/content/web/proftpd/proftpd-inst.xml
  
  Index: proftpd-inst.xml
  ===================================================================
  <sect2>
  <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>
  </userinput></screen></para>
  
  <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>
  
  </sect2>
  
  
  
  
  1.1                  BLFS/BOOK/content/web/proftpd/proftpd-intro.xml
  
  Index: proftpd-intro.xml
  ===================================================================
  <sect2>
  <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>
  
  <sect3><title><application>ProFTPD</application> dependencies</title>
  <sect4><title>Optional</title>
  <para><xref linkend="Linux_PAM"/></para></sect4>
  </sect3>
  
  </sect2>
  
  
  
  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 "ftp://ftp.proftpd.org/distrib/source/proftpd-&proftpd-version;.tar.bz2">
  <!ENTITY proftpd-size "0.7 MB">
  <!ENTITY proftpd-time "0.6 SBU">
  
  
  



More information about the blfs-book mailing list