Administration
  Home arrow Administration arrow Page 10 - Professional File Transfer with proFTP...
Dev Shed Forums 
Administration  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Download TestComplete 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
ADMINISTRATION

Professional File Transfer with proFTPD
By: Vikram Vaswani, (c) Melonfire
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 25
    2003-05-14

    Table of Contents:
  • Professional File Transfer with proFTPD
  • The Sales Pitch
  • Source Control
  • Start Me Up
  • Going Home
  • Signed, Anonymous
  • Giving Back
  • Timberrrrrrrrr!
  • Getting Virtual
  • Passing Messages
  • Ending On A High Note

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
     
    ADVERTISEMENT

    Dell PowerEdge Servers

    Professional File Transfer with proFTPD - Passing Messages
    (Page 10 of 11 )

    You can customize the messages displayed by proFTPD via its numerous display directives, some of which are outlined below:
    # set authentication messages
    AccessGrantMsg "You said the magic word!"
    AccessDenyMsg "Leave and never darken my door again!"
    # set connect message (before login)
    DisplayConnect /usr/local/ftpd/connect.msg
    # set per-directory message
    DisplayFirstChdir .msg
    # set login and logout messages
    DisplayLogin login.msg
    DisplayQuit logout.msg
    
    Note that the files pointed to by the DisplayFirstChdir, DisplayLogin and DisplayQuit directives must all be located under the root directory space defined for the FTP user. Files located outside this space will not be processed. In the event that the server cannot find a specified file, it will display no message for the corresponding action.

    You can also customize server timeouts and number of possible connections with a range of different directives. For example, the TimeoutIdle directive specifies the time the server will wait before disconnecting an idle connection, while the TimeoutLogin directive sets the time it will wait for connected clients to log in (all timeout values are specified in seconds).

    # disconnect the client if idle for 2 minutes
    TimeoutIdle 60

    # disconnect the client if not logged in successfully for 2 minutes TimeoutLogin 60

    The TimeoutNoTransfer directive sets the time the server will wait for clients which have not issued any transfer commands before disconnecting them.

    # disconnect the client if 2 minutes elapse with no transfer
    TimeoutNoTransfer 120


    The TimeoutSession directive sets a maximum time limit for each client session - the server will disconnect the client once this duration has elapsed.

    # disconnect the client after 10 minutes
    TimeoutSession 600


    You can limit the maximum number of connections to the server with the MaxClients directive,

    # set max number of clients at any time
    MaxClients 50


    or apply more fine-grained rules with the MaxClientsPerHost and MaxClientsPerUser directives, which allow you to restrict connections based on source host and source user respectively.

    # set max connections per client and per user
    MaxClientsPerHost 5
    MaxClientsPerUser 5


    You can limit the number of login attempts per connection with the MaxLoginAttempts directive,

    # set max number of login attempts
    MaxLoginAttempts 2


    and place restrictions on the size of uploaded and downloaded files with the MaxRetrieveFileSize and MaxStoreFileSize directives.

    # set max file size for downloads and uploads
    MaxRetrieveFileSize 10 Mb
    MaxStoreFileSize 4 Mb


    Finally, you can permit resumption of broken file transfers with the AllowRetrieveRestart and AllowStoreRestart directives, which tell the server that it should allow clients to restart interrupted downloads and uploads.

    AllowRetrieveRestart on
    AllowStoreRestart on


    More Administration Articles
    More By Vikram Vaswani, (c) Melonfire


     

       

    ADMINISTRATION ARTICLES

    - Configuring Load-Balanced Clusters
    - Load-Balanced Clusters
    - UNIX Time Format Demystified
    - Making Changes in the CVS
    - Building Your First CVS Repository
    - CVS Quickstart Guide
    - Authorizing Users in Samba
    - Handling User Accounts in Samba
    - Authentication in Samba
    - Accounts, Authentication, and Authorization
    - Advanced Concepts on Dealing with Files and ...
    - Dealing with Files and Filesystems
    - More Hacks for the User Environment in BSD
    - Personalizing the User Environment in BSD
    - Customizing the User Environment in BSD

     
    Accelerating Trading Partner Performance
     
    Competing on Analytics
     
    Cost Effective Scaling with Virtualization and Coyote Point Systems
     
    Five Checkpoints to Implementing IP Telephony
     
    Hosted Email Security: Staying Ahead of New Threats
     




    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway