FTP Server (bftpd)
- This document covers the compilation, installation and basic configuration of the bftpd FTP server. I have chosen to document this server over other more popular FTP servers because of the simplicity of compilation and configuration. It does not require any pre-installed software on a Core Linux system, other than the packages installed during installation.
- More advanced configuration is covered in documentation included with the source code and online. A good place to start is the bftpd website.
- If you install this software it is highly recommended that you keep up-to-date with security advisories published on the bftpd website.
- I cannot be held responsible for the security of your FTP server. It is up to you to understand the software you are running. The setup detailed here is that of a basic FTP server and nothing more.
- If you spot any major errors on this page, please e-mail me using the link above.
- It is assumed that this installation takes place on a computer on which Core Linux has been successfully installed.
- No software other than the packages bundled with Core Linux have been installed.
- As described in the installation guide, it is assumed that any downloaded application source code is stored in a directory called
/appson the CD-R. - It is assumed that the Core Linux computer is attached to a network on which there is at least one other machine with internet access and a CD burner. It must also be running an FTP client program, such as
ftpon *nix or on Windows.
Preparation
- Download the bftpd source code from bftpd.sourceforge.net.
- Burn the file
bftpd-1.0.22.tar.gzto a CD. This page assumes that the subdirectory/appsis used for the.tar.gzfile. The CD-ROM can be a multi-session disk.
Booting
- Boot your Core Linux PC.
- Login as
root. You will need to enter the password at the prompt.
Extract the source
- Place the CD-R in the CD-ROM drive. Mount the CD-ROM drive under
/mnt/cdrom. - Change to the
/appsdirectory on the CD-R. - Copy the
bftpd-1.0.22.tar.gzfile to the directory/usr/src. - Change to the
/usr/srcdirectory and extract the source from the.tar.gzfile.
Configure and compile
- Change to the
/usr/src/bftpd-1.0.22directory. - Run the
./configurescript. - Run the
makeprogram. - Run the
makeprogram with the argumentinstall.
Setting up bftpd
- Create the file
/var/run/bftpd/bftpdutmp. - Configure a user for FTP access. By default, the user
ftpis allowed anonymous logon. No password needs to be set. This prevents the user from logging on at the terminal. Other users require a valid username and password combination for access to the system. - Create the home directory for the FTP user.
Starting bftpd
- Start the bftpd server using
bftpd -d. - Using your other computer, see if you can access the FTP server.
Stopping bftpd
- Stop the bftpd server using
kill.
Automating bftpd
- Append the following line to the
/etc/rc.d/rc.muscript:You can also add comments and echoes for your own information.bftpd -d - Reboot the system and check that bftpd is running.

The text of this page is licensed under a Creative Commons License.
