• VMware

    Learn about VMware virtualization for its products like vsphere ESX and ESXi, vCenter Server, VMware View, VMware P2V and many more

  • Linux

    Step by step configuration tutorials for many of the Linux services like DNS, DHCP, FTP, Samba4 etc including many tips and tricks in Red Hat Linux.

  • Database

    Learn installation and configuration of databases like Oracle, My SQL, Postgresql, etc including many other related tutorials in Linux.

  • How to configure FTP server in Linux

    There are many types of services available which can be used to configre FTP server in Linux. In this particular artical I will be showing you the most simple FTP server with least features. As vSFTPD is very fast many rules can be implemented using this server but it depends on the user and requirement.

    VSFTPD means Very Secure FTP Daemon where FTP stands for File Transfer Protocol.

    To start with the configuration check for the packages required
    # rpm -qa | grep vsftpd
    # yum -y install vsftpd

    The details of all the syntax used in the config file have been explained in brief so you can opt for the option as per your requirement

    # vi /etc/vsftpd/vsftpd.conf
    (you have to check for all these parameters)
    Allow anonymous FTP?
    #Uncomment this to allow local users to log in.
    # Uncomment this to enable any form of FTP write command
    #Uncomment this to allow the anonymous FTP user to upload files
    # You may specify an explicit list of local users to chroot() to their home
    # directory. If chroot_local_user is YES, then this list becomes a list of
    # users to NOT chroot().


    Restart your service
    # service vsftpd restart
    If you want to prohibit few users from logging into the ftp server then add the following parameter in your config file
    # vi /etc/vsftpd/user_list

    To change the default login directory of anonymous users .
    Add this parameter in vsftpd.conf file
    # vi /etc/vsftpd/vsftpd.conf
    (Make sure the permission on this directory is proper to be accessible by the required user)

    To change the default login directory for any user on the ftp server as by default the user always logs into his/her home directory.
    Add this paramenter in vsftpd.conf
    save and exit
    # cd /etc/vsftpd/
    Create a new file vsftpd_user_conf
    # vi vsftpd_user_conf

    # service vsftpd restart

    How to configure FTP server in Linux How to configure FTP server in Linux Reviewed by admin on Friday, August 10, 2012 Rating: 5


    1. Can you also please provide iptables rules to be used for all the server configuration


      1. I have started writing posts provide tutorials on iptables so you can try to learn on how to use iptables and creating rules.

        You can follow the same here

        It would be helpful if you can give feedback for the same which can help me improve my posts.

        Thank You


    Powered by Blogger.