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.
Unlike its competitors, some of which require four or more configuration files, proFTPd is controlled via a single configuration file, usually located in "/usr/local/ftpd/etc/proftpd.conf". Pop open this file, and put the following lines of code into it:
# set server parameters
ServerName "ProFTPD"
ServerAdmin "admin@localnet.com"
ServerType standalone
Port 21
# set default umask
Umask 022
# set the user and group for the server process
User nobody
Group nobody
If you've ever used the Apache Web server, you'll notice a marked
similarity between the configuration file above and Apache's "httpd.conf" file. This is no accident - proFTPD was inspired by the Apache approach, and uses a similar directive-based technique to configure the server.
Most of the directives above should be fairly self-explanatory - the ServerName directive sets the name of the server (as displayed to connecting users), the ServerAdmin directive sets the email address of the server's administrator and the Port directive sets the port the server will run on. The ServerType directive specifies whether the server is active at all times, or whether it is awakened on demand from the "inetd" daemon. The User and Group directives set the user and group owning the server process, while the Umask directive sets the file mask for files and directories created by FTP users.
With the configuration completed, how about starting the server and playing with it a little?
$ /usr/local/ftpd/sbin/proftpd
If all goes well, proFTPd should start up and run in the background
as a daemon.
You can verify this by checking the list of running processes: