Installing an FTP Server on Centos or Fedora
To create an FTP Server on Centos or Fedora (in this instance vsftpd) you need to be logged in to terminal as root and then:
- To install vsftpd type: yum install vsftpd
- To turn on the vsftpd ftp service type: chkconfig vsftpd on
- To start/stop/restart the vsftpd service type: service vsftpd start/stop/restart
- To change your vsftpd configuration file type: nano /etc/vsftpd/vsftpd.conf
- To see the vsftpd manual type: man vsftpd.conf
If you do not wish for clients to view the contents of the /home/ directory it may be wise to add the following to the bottom of your vsftpd.conf: chroot_local_user=YES and restart the vsftpd process.
Please remember that you may need to open port 20 & 21 in your firewall for your FTP server to be externally reachable.