Operating System - HP-UX
1826388 Members
4590 Online
109692 Solutions
New Discussion

warning banner for ftp and ssh

 
SOLVED
Go to solution
Joseph Hoh
Frequent Advisor

warning banner for ftp and ssh

Does anyone know how to put in a warning banner for ftp and ssh?

Thanks.
3 REPLIES 3
Volker Borowski
Honored Contributor

Re: warning banner for ftp and ssh

Hi,

for ftp you can put a .message file in each directory that should display a message.

For ssh /etc/issue should work

Volker
Sanjay_6
Honored Contributor
Solution

Re: warning banner for ftp and ssh

Hi Jeff,

To display a custom ftp banner, i think you should have the ftpaccess configured. Modify the following line in the /etc/ftpd/ftpaccess file:

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

Here is how you can configure ftpaccess on your system,

http://us-support3.external.hp.com/cki/bin/doc.pl/sid=504e341c06c2add525/screen=ckiDisplayDocument?docId=200000055935266

Hope this helps.

Regds
Rita C Workman
Honored Contributor

Re: warning banner for ftp and ssh

Well on my FTP server I use the /etc/ftpd/ftpaccess file and added the following:
banner /etc/issue
banner /etc/motd

The issue file tells them they hit the FTP Server...And the motd prints up what the rules for using it are....
I have another line..
message /home/message

This get triggered if they try to do something they shouldn't and it's a stronger 'no-no' message.

Just remember to activate using the ftpaccess file in your /etc/inetd.conf by putting a ( -a ) at the end of the ftp line..

Just one way of many ways to do ftp..
Rit