Operating System - HP-UX
1826444 Members
4200 Online
109692 Solutions
New Discussion

how to change banner of FTP login screen

 
SOLVED
Go to solution
Amitava_HP-UX
Advisor

how to change banner of FTP login screen

hi
in HP-UX 11.11 i am getting following messages at FTP
#ftp localhost
Connected to localhost.
220 bpc3 FTP server (Version 1.1.214.4(PHNE_30990) Mon Nov 15 12:47:12 GMT 2004) ready.
Name (localhost:amitava):

I want to change "(Version 1.1.214.4(PHNE_30990) Mon Nov 15 12:47:12 GMT 2004)" messages into my customized messages. For that i coppied the ftpaccess template file in /etc/ftpd/ftpaccess file & modified the following parameters
limit local 20 any /etc/msgs/msg.toomany
limit remote 100 SaSu|Any1800-0600 /etc/msgs/msg.toomany
limit remote 60 Any /etc/msgs/msg.toomany

message /welcome.msg login
#message .message cwd=*

i hv put my customized message in /etc/msgs/msg.toomany & /welcome.msg both the files. But the customized message is not comming in the logon banner. Pls help.
7 REPLIES 7
RAC_1
Honored Contributor
Solution

Re: how to change banner of FTP login screen

You need to tell ftpd to use that file. You need to update inetd.conf file and add "-a"option to ftpd. Restart inetd to take effect. The line would look like follows.

ftp stream tcp nowait root /usr/lbin/ftpd ftpd -l -a
There is no substitute to HARDWORK
Robert-Jan Goossens_1
Honored Contributor

Re: how to change banner of FTP login screen

Hi,

Check this doc for more info.

Title: How do I add a banner or message for ftp users?
Document ID: UARPAKBQA00000239

US
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080078388

Europe
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000080078388

Regards,
Robert-Jan
Amitava_HP-UX
Advisor

Re: how to change banner of FTP login screen

now banner is conning but the detail information related to FTP is also getting displayed. see the screenshot
#ftp localhost
Connected to localhost.
220-All transactions to and from this server are logged. It is to be used by the authorized users of Bharti Tele Ventures Limited only. Legal action will be taken Limited only. Legal action will be taken Limited only. Legal action will be taken.
220-
220 bpc3 FTP server (Version 1.1.214.4(PHNE_30990) Mon Nov 15 12:47:12 GMT 2004) ready.
Name (localhost:amitava):

I dont want to display this portion "(Version 1.1.214.4(PHNE_30990) Mon Nov 15 12:47:12 GMT 2004) ready."

how to do that?
Rajeev  Shukla
Honored Contributor

Re: how to change banner of FTP login screen

Do a man on ftpaccess and there are many more functions you can use. For your issue to suppress version use the following line in ftpaccess file
suppressversion yes

Rajeev  Shukla
Honored Contributor

Re: how to change banner of FTP login screen

one more thing!!
you need to use both

suppresshostname yes
suppressversion yes

Cheers
Rajeev
Doug Burton
Respected Contributor

Re: how to change banner of FTP login screen

Here's what I use. Hope it helps.

After adding "-l -a" to the end of the ftp line in the /etc/inetd.conf file, you will need to add the following to the /etc/ftpd/ftpaccess file (don't forget to change the "gotham.city.com" part to whatever your using):

class local real *.gotham.city.com 0.0.0.0
class remote real *
suppresshostname yes
suppressversion yes
email root
banner /etc/issue
loginfails 3
private yes
noretrieve passwd core
log commands anonymous,guest,real
log transfers anonymous,guest,real inbound,outbound
passwd-check enforce

To see how well you've done on the old config front run this (you may have to config inetd.conf before running this):

echo quit | telnet localhost 21
Amitava_HP-UX
Advisor

Re: how to change banner of FTP login screen

Thanks to all. My problem is solved totally.