Featured

Saturday, June 8, 2013

VSFTPD stands for Very Secure File Transfer Daemon. It is commonly used as FTP server.In this tutorial I will tell you how to install and configure on FEDORA.The Process is similar on REDHAT 6 / CENTOS 6

My Server name is webserver.dcageek.com and IP Address is 192.168.152.131

Step 1 : Install the vsftpd package
                
                #yum install vsftpd ftp*


Step 2 : Start the Service
                
                #service vsftpd start
                #chkconfig vsftpd on


Step 3: Configure the ftp server by editing the file vsftp.conf. It is located in /etc/vsftpd/vsftpd.conf
                
                #vi /etc/vsftpd/vsftpd.conf
            Set the line numbers
                # se nu


Step 4: Edit the following lines 12,22,80,81,84.

                Line No 12 replace anonymous user =YES to  NO
                Line NO 22 Check unmask value is 22 or not.if not change as 22
                Line No 80 & 81 Uncomment both the lines
                Line No 84 Uncomment if you need Banner service otherwise no need


Step 5: Restart the service & Create users
                
                #service vsftpd restart
                #useradd admin
                #passwd admin


Step 6: Login to ftp server

#ftp 192.168.152.131

Give the username as admin and password for admin.
If you get a 500 change directory error then type this command

#setsebool –P ftp_home_dir on

        Now Again log in to the server


Step 7: Connect to the ftp server from client side for testing purpose,in client side my pc name is desktop.dcageek.com & IP is 192.168.152.130
                
          #ftp 192.168.152.131

                If you logged into the server suceessfully means whala server configured………..
       Otherwise you are getting the error “No route to host” means you are one step behind the finish line.Add the following entries in the iptables

#vi /etc/sysconfig/iptables

-A INPUT –p udp –m state –state NEW –dport 21 –j ACCEPT
-A INPUT –p tcp –m state –state NEW –dport 21 –j ACCEPT


Restart the IPTABLES

#service iptables restart

Setp 8 : Now Login to the ftp server
        
         #ftp 192.168.152.131


Login from Browser also In the URL fields type ftp://192.168.152.130, It will ask for username and password



Thats it ftp server is configured .enjoy










-->
Categories:

0 comments:

Post a Comment