How to Install, Configure and Secure FTP Server in CentOS 7 – [Comprehensive Guide]

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.45/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Aaron Kili

Aaron Kili is a Linux and F.O.S.S enthusiast, an upcoming Linux SysAdmin, web developer, and currently a content creator for TecMint who loves working with computers and strongly believes in sharing knowledge.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

45 Responses

  1. Bile Bakshi says:

    I am getting 2 error and they are below:

    [[email protected] ~]$ sudo setsebool -P ftp_home_dir on
    Boolean ftp_home_dir is not defined
    
    [[email protected] ~]$ sudo semanage boolean -m ftpd_full_access --on
    sudo: semanage: command not found
    
    [[email protected] ~]$ sudo ftp 192.168.1.111
    sudo: ftp: command not found
    
    [[email protected] ~]$ rpm -q ftp           # not install package
    package ftp is not installed
    [[email protected] ~]$
    [[email protected] ~]$ rpm -q vsftpd  # if i installed vsftpd then this package doesn't come with ftp
    vsftpd-3.0.2-25.el7.x86_64
    

    So what to do now?

  2. James Stroud says:

    In CentOS 7.6 the individual configuration file have changed from:

    /etc/vsftpd.userlist
    to:
    /etc/vsftpd/userlist
    

    It is not clear in the article (at least to me) that you need to add this line.

    userlist_deny=NO
    

    in the /etc/vsftpd/vsftpd.conf file in order for it take affect.

    Also if you want to ftp as the root user you must comment out or delete the root line in this file.

    vi /etc/vsftpd/ftpusers
    

    For example in my case it now looks like:

    [[email protected] vsftpd]# cat ftpusers
    # Users that are not allowed to login via ftp
    #root
    bin
    daemon
    adm
    lp
    sync
    shutdown
    halt
    mail
    news
    uucp
    operator
    games
    nobody
    

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.