Customizing the FTP service

In this recipe, you will learn how to customize your vsftpd installation. vsftpd has a lot of configuration parameters, and here we will show how to create a custom welcome banner, change the server's default-time out, limit user connections, and ban users from the service.

Getting ready

To complete this recipe, you will require a working installation of the CentOS 7 operating system with root privileges and a console-based text editor of your choice. It is expected that your server will be using a static IP address and that vsftpd is already installed with a chroot jail and is currently running.

How to do it...

  1. To begin with, log in as root and open the main vsftpd configuration file:
    vi /etc/vsftpd/vsftpd.conf
    
  2. First provide ...

Get CentOS 7 Linux Server Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.