How to Change the vsftp or vsftpd server banner message

Q. How do I change the banner message that vsftpd server displays?

ADVERTISEMENTS

A. vsftpd, stands for ‘Very Secure FTP Daemon’, is an FTP server for many Linux distributions.

In order to impove security you may need to change default banner message. To change banner message open configuration file /etc/vsftpd/vsftpd.conf file:
# vi /etc/vsftpd/vsftpd.conf

Locate line which is read as follows:
#ftpd_banner=

Uncomment line to customize the login banner and setup new text message:
ftpd_banner=Welcome to nixCraft ftp server

Save and close the file. Restart vsftpd:
# /etc/init.d/vsftpd restart

Now all users of VSFTPD/FTP should see your login banner. Test new setup with ftp command from windows or linux box itself:
$ ftp ftp.myftpserver.com

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
2 comments… add one
  • Laura Oct 10, 2008 @ 12:39

    Can the banner variable point to a file instead of displaying the line? I tried listing a path to the file but all it does is display what I just typed in.

  • dave Jul 19, 2009 @ 19:26

    Hi Laura,

    You can use the banner_file option to do that. If set, it overrides the banner string provided by the ftpd_banner option.

    Check out man vsftpd.conf for all available settings.
    Regards

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.