26.11. Very Secure ftpd

26.11. Very Secure ftpd

vsftpd provides access to installation trees for para-virtualized guests (for example the Red Hat Enterprise Linux 5 repositories) or to allow the storage of public tools/kits etc. If you have not installed vsftpd during the server installation you can grab the RPM package from your Server directory of your installation media and install it using the rpm -ivh vsftpd*.rpm (note the RPM package must be in your current directory).

  1. To configure vsftpd, edit /etc/passwd using vipw and change the ftp user's home directory to the directory where you are going to keep the installation trees for your para-virtualized guests. An example entry for the FTP user would look like the following:

    ftp:x:14:50:FTP User:/xen/pub:/sbin/nologin
  2. to have vsftpd start automatically during system boot use the chkconfig utility to enable the automatic start up of vsftpd.

  3. verify that vsftpd is not enabled using the chkconfig --list vsftpd:

    $ chkconfig --list vsftpd
    vsftpd          0:off   1:off   2:off   3:off   4:off   5:off   6:off
  4. run the chkconfig --levels 345 vsftpd on to start vsftpd automatically for run levels 3, 4 and 5.

  5. use the chkconfig --list vsftpd command to verify vsftdp has been enabled to start during system boot:

    $ chkconfig --list vsftpd
    vsftpd          0:off   1:off   2:off   3:on    4:on    5:on    6:off
  6. use the service vsftpd start vsftpd to start the vsftpd service:

    $service vsftpd start vsftpd
    Starting vsftpd for vsftpd:                  [  OK  ]

Note: This documentation is provided {and copyrighted} by Red Hat®, Inc. and is released via the Open Publication License. The copyright holder has added the further requirement that Distribution of substantively modified versions of this document is prohibited without the explicit permission of the copyright holder. The CentOS project redistributes these original works (in their unmodified form) as a reference for CentOS-5 because CentOS-5 is built from publicly available, open source SRPMS. The documentation is unmodified to be compliant with upstream distribution policy. Neither CentOS-5 nor the CentOS Project are in any way affiliated with or sponsored by Red Hat®, Inc.