1820636 Members
1913 Online
109626 Solutions
New Discussion юеВ

ftp banner

 
Craig Rants
Honored Contributor

ftp banner

How would I, if possible, change the banner output of ftp from "220 servername.com FTP server (Version 1.1.214.7 Thu Aug 10 09:57:38 GMT 2000) ready", To a message, without adding something into the /etc/inetd.conf file.

TIA

Craig
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
5 REPLIES 5
harry d brown jr
Honored Contributor

Re: ftp banner

In /etc/ftpaccess you can add the "banner " to the config.


live free or die
harry
Live Free or Die
Roger Baptiste
Honored Contributor

Re: ftp banner



****
RESOLUTION
This feature is not available on HP-UX 10.20, but is part of HP-UX 11.x
with patch PHNE_18354.

To add the custom banner (for an HP-UX 11.0 system):

1. Install patch PHNE_18354.

Note: This patch, as with any patch, may be superseded. Please
check for the latest patch at the Electronic Support Center
(ESC) by using either of these web sites:

http://us-support.external.hp.com

http://europe-support.external.hp.com

2. Modify the following line in the /etc/ftpd/ftpaccess file:

Change: message /welcome.msg login
To: message /welcome.msg [path where message is located]

***

-raj
Take it easy.
Sanjay_6
Honored Contributor

Re: ftp banner

Joseph C. Denman
Honored Contributor

Re: ftp banner

Not sure what os ver your running, but as stated above, the feature is not native to 10.20. If you are running 11.0, you can make the modification to the ftpaccess file.

If you are using a utility such as tcpwrapper, you can add a banner statement to your hosts.allow for ftpd. This works for 10.20 and 11.0

...jcd...
If I had only read the instructions first??
Craig Rants
Honored Contributor

Re: ftp banner

Thanks to all for pointing me in the right direction.

I had to do somework on my own, so here is the solution to my question.

1)cp /usr/newconfig/etc/ftpd/ftpaccess /etc/ftpd
2)
vi /etc/ftpd/ftpaccess
(added the following lines)
banner /tmp/testmsg
suppresshostname yes
suppressversion yes
3)
vi /etc/inetd.conf
(put -a option after ftpd )
ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a
4)
inetd -c

Then when ftping to the particular box I get:
220-this is a test.
220-
220 FTP server ready.
Name (servername:username):

It suppressed the version but not the hostname, so I researched the problem a little and found a problem with the superceeding ftp patch PHNE_21936. Quote from the patch page "5. JAGad07683/SR8606138481. The suppresshostname and suppressbanner options in the ftpd configuration file, ftpaccess, are not working as expected."

Thanks again.
Craig
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut