1820028 Members
3279 Online
109608 Solutions
New Discussion юеВ

Re: banner for vsftpd

 
SOLVED
Go to solution
Ratzie
Super Advisor

banner for vsftpd

I am trying to set up a banner for vsftp and the banner requires a security warning that spans multiple lines, when I entry in into the vsftpd.conf file it hoses my ftp and I must uninstall and reinstall the rpm.

# You may fully customise the login banner string:
ftpd_banner=Welcome to blah FTP service. With multiple lines...

I even tried putting quotes around it...
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: banner for vsftpd

Have you tried the line continuation characters:

ftpd_banner=Welcome to blah FTP service. With multiple lines... \

content of line 2 \

You chould be able to point it to a file.

SEP

ftpd_banner=/etc/issue.ftpd

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Steven E. Protter
Exalted Contributor

Re: banner for vsftpd

Hit enter too soon.

http://www.google.com/search?hl=en&lr=&ie=UTF-8&oe=UTF-8&q=+vsftpd+ftpd_banner&btnG=Google+Search

This search contains configuration guides that you will need to overcome this isssue.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ratzie
Super Advisor

Re: banner for vsftpd

I also tried with the \ at the end and, when I did that I got ...
ftp: connect: Connection refused

For some reason it only allows one line!

I also tried the link that you sent, it outputs one line at a time, one line before the login, then at the bye prompt it also kicks outputing the message.
James A. Donovan
Honored Contributor
Solution

Re: banner for vsftpd

Try creating and using a banner file, and set the value of banner_file to point to it.

e.g.

banner_file=/etc/vsftd.banner

#
http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/ref-guide/s1-ftp-vsftpd-conf.html

banner_file - Specifies the file containing text displayed when a connection is established to the server. This option overrides any text specified in the ftpd_banner directive.

There is no default value for this directive.
Remember, wherever you go, there you are...
Ratzie
Super Advisor

Re: banner for vsftpd

I have tried that...
output from
ftpd_banner=/etc/banner/ftp.banner

/etc/banner/ftp.banner
James A. Donovan
Honored Contributor

Re: banner for vsftpd

no, no

set

banner_file=/etc/vsftd.banner

NOT

ftpd_banner
Remember, wherever you go, there you are...