Next Previous Contents

2. Installation

2.1 Compiling

First execute the following commands (replacing x.x.x by the version number you are installing):

tar xzf bftpd-x.x.x.tar.gz
cd bftpd-x.x.x
./configure
make
make install
  
Note that you have to copy bftpd.conf from the source directory to /etc manually if you are upgrading from a previous version, as 'make install' does not overwrite your existing configuration.

Note: If you want to use the 'tar.gz on-the-fly' feature of bftpd, you must grab the source code of the program "pax" and extract it into a subdirectory of the bftpd source directory. Then, instead of doing "./configure", do "./configure --enable-pax=pax-sourcedir --enable-libz". You must also have the library libz and its header file, /usr/include/zlib.h.

2.2 Running the server

bftpd runs in either standalone or inetd mode.

If you want inetd mode

Add the following to your /etc/inetd.conf:

ftp stream tcp nowait root /usr/sbin/bftpd bftpd
Give inetd a HUP or reboot your system. Your FTP server should work now.

If you want inetd mode with xinetd

Add the following to your /etc/xinetd.conf:

service ftp
{
    disable = no
    socket_type             = stream
    wait                    = no
    user                    = root
    server                  = /usr/sbin/bftpd
    log_on_success          += DURATION USERID
    log_on_failure          += USERID
    nice                    = 10
}
(contributed by JackRipper)

If you want standalone mode:

Make the OS execute

/usr/sbin/bftpd -d
at bootup.


Next Previous Contents