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...
To begin with, log in as root and open the main
vsftpd
configuration file:vi /etc/vsftpd/vsftpd.conf
First provide an alternative welcome message, uncomment the following line, and alter the message as required. For example, you could use this:
ftpd_banner=Welcome to my new FTP server
To change the default FTP time-outs, uncomment these lines and substitute...