Home arrow Site Administration arrow Page 10 - Professional File Transfer with proFTPD

Passing Messages - Administration

Need to set up an FTP server on your network to simplify file transfer between users or hosts? Look no further than the robust, secure and very free proFTPD server, which has everything you need to get up and running in a jiffy. This article covers installing and configuring proFTPD for both regular and anonymous FTP, and also explains how to customize the operation of the server for different requirements.

  1. Professional File Transfer with proFTPD
  2. The Sales Pitch
  3. Source Control
  4. Start Me Up
  5. Going Home
  6. Signed, Anonymous
  7. Giving Back
  8. Timberrrrrrrrr!
  9. Getting Virtual
  10. Passing Messages
  11. Ending On A High Note
By: Vikram Vaswani, (c) Melonfire
Rating: starstarstarstarstar / 26
May 14, 2003

print this article


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 Site Administration Articles          >>> More By Vikram Vaswani, (c) Melonfire

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort


- Coding: Not Just for Developers
- To Support or Not Support IE?
- Administration: Networking OSX and Win 7
- DotNetNuke Gets Social
- Integrating MailChimp with Joomla: Creating ...
- Integrating MailChimp with Joomla: List Mana...
- Integrating MailChimp with Joomla: Building ...
- Integrating MailChimp with Joomla
- More Top WordPress Plugins for Social Media
- Optimizing Security: SSH Public Key Authenti...
- Patches and Rejects in Software Configuratio...
- Configuring a CVS Server
- Managing Code and Teams for Cross-Platform S...
- Software Configuration Management
- Back Up a Joomla Site with Akeeba Backup

Developer Shed Affiliates


Dev Shed Tutorial Topics: