Install and Configure FTP(Vsftpd) service in CentOS/Linux

Your ads will be inserted here by

Easy Plugin for AdSense.

Please go to the plugin admin page to
Paste your ad code OR
Suppress this ad slot.

Q. How do I configure and install an FTP server in CentOS / RHEL 5 / Fedora Linux server?
A. CentOS / RHEL server comes with vsftpd which is the Very Secure File Transfer Protocol (FTP) daemon. The server can be launched via a xinetd or as standalone mode, in which case vsftpd itself will listen on the network port 21.

[root@leonli.co.uk ~]# yum -y install vsftpd
[root@leonli.co.uk ~]# vi /etc/vsftpd/vsftpd.conf
# line 12: no anonymous
anonymous_enable=NO
# line 80,81: uncomment ( allow ascii mode )
ascii_upload_enable=YES
ascii_download_enable=YES
# line 95, 96: uncomment ( enable chroot )
chroot_local_user=YES
chroot_list_enable=YES
# line 98: uncomment ( specify chroot list )
chroot_list_file=/etc/vsftpd/chroot_list
# line 104: uncomment
ls_recurse_enable=YES
# add at the last line 
# specify root directory ( if don't specify, users' home directory become FTP home directory)
local_root=public_html
# use localtime
use_localtime=YES
[root@leonli.co.uk ~]# vi /etc/vsftpd/chroot_list
# add users you allow to move over their home directory
cent
[root@leonli.co.uk ~]# /etc/rc.d/init.d/vsftpd start 
Starting vsftpd for vsftpd: [  OK  ]
[root@leonli.co.uk ~]# chkconfig vsftpd on

Read More