How to Set the Vsftpd Server Banner Message on RHEL 6

Share this Article :

This post will guide you on how to configure Vsftpd welcome banner to every new user that connects, set the banner_file parameter and place a suitable welcome message on Red Hat Enterprise Linux 6 (RHEL 6). Vsftpd is a GPL licensed FTP server for UNIX systems, including Linux. It is secure and extremely fast and it’s stable. This post assumed you have installed Vsftpd Ftp Server.

How to Install and Configure Vsftpd Ftp Server on RHEL 6

1. Open /etc/vsftpd/vsftpd.conf find “ftpd_banner” :

    [[email protected] ~]# vi /etc/vsftpd/vsftpd.conf
    

Original configuration file :

    # ASCII mangling is a horrible feature of the protocol.
    #ascii_upload_enable=YES
    #ascii_download_enable=YES
    #
    # You may fully customise the login banner string:
    #ftpd_banner=Welcome to blah FTP service.
    #
    # You may specify a file of disallowed anonymous e-mail addresses. Apparently
    # useful for combatting certain DoS attacks.
    

2. Change something like this. Uncomment ftpd_banner and customize the login banner string as below :

    # ASCII mangling is a horrible feature of the protocol.
    #ascii_upload_enable=YES
    #ascii_download_enable=YES
    #
    # You may fully customise the login banner string:
    ftpd_banner=Welcome to eHowStuff.com RHEL6 FTP server
    #
    # You may specify a file of disallowed anonymous e-mail addresses. Apparently
    # useful for combatting certain DoS attacks.
    

3. Restart the ftp service :

    [[email protected] ~]# service vsftpd restart
    Shutting down vsftpd:                                      [  OK  ]
    Starting vsftpd for vsftpd:                                [  OK  ]
    

4. Try login to ftp server. Check the banner, it will appear before user login as below :

    D:\>ftp 192.168.1.43
    Connected to 192.168.1.43.
    220 Welcome to eHowStuff.com RHEL6 FTP server
    User (192.168.1.43:(none)):
    

Leave a Reply