Koozali.org: home of the SME Server

Obsolete Releases => SME Server 7.x => Topic started by: rocky1 on June 06, 2008, 05:09:30 AM

Title: How to change the ProFTP greeting banner
Post by: rocky1 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.
Title: Re: How to change the ProFTP greeting banner
Post by: cactus 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