Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

How to configure ftp server on centos

FTP is a file transferring protocol used to transfer form one host to another over TCP.
Package used for ftp server is vsftpd (Very Secure FTP Daemon). It is able to handle number of connections efficiently and securely. It uses port 21.

FTP server is used in wide area network. No mounting is needed. File uplod and download can be possible. FTP server offers two types of login, which are anonymous login and local user login.


Step 1: Install Vsftpd package

       [[email protected] ~]# yum install vsftpd

Step 2: After install vsftpd package open configuration file and edit the file as following.

       [[email protected] ~]# vim /etc/vsftpd/vsftpd.conf 





      Note: If 'anonymous_enable=YES', anyone can access ftp server without username and password.

Step 3: Create a folder where to store ftp data. In my case I am going to install folder under '/' directory.

       [[email protected] /]# mkdir FTP-Share

Step 4: Create a ftp user with home directory as above created folder

       [[email protected] /]# useradd -d /FTP-Share/alleria alleria
       [[email protected] /]# passwd alleria

Step 5: Start the vsftpd service and add on startup

       [[email protected] /]# service vsftpd start
       [[email protected] /]# chkconfig vsftpd on

Step 6: Now test ftp. I created a file under user alleria's home directory.

       [[email protected] /]# cd FTP-Share/alleria/
       [[email protected] alleria]# touch alleria.txt

This post first appeared on AdminCool, please read the originial post: here

Share the post

How to configure ftp server on centos


Subscribe to Admincool

Get updates delivered right to your inbox!

Thank you for your subscription