Koozali.org: home of the SME Server

How to change the ProFTP greeting banner

Offline rocky1

  • 1
  • +0/-0
How to change the ProFTP greeting banner
« on: June 06, 2008, 05:09:30 AM »
SME Server 7.3
Hi,
    How do I change the FTP greeting banner. It's displaying the local IP at the moment
and I would like to change if possible?

Any help is appreciated.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: How to change the ProFTP greeting banner
« Reply #1 on: June 06, 2008, 11:44:57 AM »
SME Server 7.3
Hi,
    How do I change the FTP greeting banner. It's displaying the local IP at the moment
and I would like to change if possible?

Any help is appreciated.
The original message is in /var/ftp/welcome.msg, I suggest you do not alter that one but do the following:

Create a new file with the message you would like in /var/ftp/ with your favourite editor.

After that modify the templates to point to the new welcome message file, something like this:

Code: [Select]
mkdir -p /etc/e-smith/templates-custom/etc/proftpd.conf
cp /etc/e-smith/templates/etc/proftpd.conf/05DisplayLogin  /etc/e-smith/templates-custom/etc/proftpd.conf/

Now edit the copied template fragment (/etc/e-smith/templates/etc/proftpd.conf/05DisplayLogin) to point to the new welcome message with you favorite editor.

After that regenerate the configuration file:
Code: [Select]
expand-template /etc/proftpd.conf
And restart the ftp server:
Code: [Select]
service ftp restart
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)