Configurations

Securing and Optimizing Linux: RedHat Edition -A Hands on Guide
Prev | Chapter 32. Linux `FTP` Server | Next

# 32.4. Configurations

> : All the configuration files required for each software described in this book has been provided by us as a gzipped file, `floppy.tgz` for your convenience. This can be downloaded from this web address: http://www.openna.com/books/floppy.tgz You can unpack this to any location on your local machine, say for example `/tmp`, assuming you have done this your directory structure will be `/tmp/floppy`. Within this floppy directory each configuration file has its own directory for respective software. For example FTP configuration file are organised like this:

>               total 32
>               -rw-r--r--    1 harrypotter    harrypotter         419 Jun  8 13:00 Compile-Wuftpd
>               -rw-------    1 harrypotter    harrypotter        1036 Jun  8 13:00 ftpaccess
>               -rw-------    1 harrypotter    harrypotter         538 Jun  8 13:00 ftpconversions
>               -rw-------    1 harrypotter    harrypotter          39 Jun  8 13:00 ftpgroups
>               -rw-------    1 harrypotter    harrypotter         188 Jun  8 13:00 ftphosts
>               -rw-------    1 harrypotter    harrypotter          79 Jun  8 13:00 ftpusers
>               drwxr-xr-x    2 harrypotter    harrypotter        4096 Jun  8 13:00 logrotate.d/
>               drwxr-xr-x    2 harrypotter    harrypotter        4096 Jun  8 13:00 pam.d/

> You can either cut and paste this directly if you are faithfully following our instructions from the begining or manually edit these to modify to your needs. This facility is there though as a convenience but please don't forget ultimately it will be your responsibility to check, verify, etc. before you use them whether modified or as it is.

To run an `FTP` server, the following files are required and must be created or copied to the appropriate directories on your server.

1. Copy the ftpaccess file in the `/etc/` directory.

2. Copy the ftpusers file in the `/etc/` directory.

3. Copy the ftphosts file in the `/etc/` directory.

4. Copy the ftpgroups file in the `/etc/` directory.

5. Copy the ftpconversion file in the `/etc/` directory.

6. Copy the ftp file in the `/etc/pam.d/` directory.

7. Copy the ftpd file in the `/etc/logrotate.d/` directory.

> : You can obtain the configuration files listed in the next sections on our `floppy.tgz` archive. Copy the following files from the decompressed `floppy.tgz` archive to the appropriate places, or copy them directly from this book to the concerned file.

Prev | Home | Next
Setup a chroot user environment | Up | Configure the `/etc/ftphosts` file