Tuesday, February 22, 2011

How Install FTP Server on CentOS

  •   To set up ftp server

# yum list vsftpd
# yum install vsftpd

FTP configuration file is:  /etc/vsftp/vstpd.conf

  •   To start FTP server

                   # service vsftpd start


mget  -i *

To change the greeting banner for vsftpd, add the following directive to the /etc/vsftpd/vsftpd.conf file:
         ftpd_banner=<insert_greeting_here>

Replace <insert_greeting_here> in the above directive with the text of the greeting message.
For mutli-line banners, it is best to use a banner file. To simplify management of multiple banners, place all banners in a new directory called /etc/banners/. The banner file for FTP connections in this example is /etc/banners/ftp.msg.
To reference this greeting banner file for vsftpd, add the following directive to the/etc/vsftpd/vsftpd.conf file:
         banner_file=/etc/banners/ftp.msg 

  • As an FTP user if you are not be able to list your home directory, check /etc/sysconfig/iptables-config and add the following:


IPTABLES_MODULES=”  …..  …..  ip_conntrack_ftp”


Done 
Inas

No comments:

Post a Comment