1820647 Members
3017 Online
109626 Solutions
New Discussion юеВ

FTP login banner

 
SOLVED
Go to solution
Charles Zepp
Occasional Contributor

FTP login banner

Is there a way to get a login banner to pop up prior to the login prompt for ftp?

I have hpux 11.11 and ftp is wrapped in inetd.conf. With telnet to get the banner to work, I just had to add the -b flag with the banner message, but I could not find a way to do it with ftp.
2 REPLIES 2
someone_4
Honored Contributor
Solution

Re: FTP login banner

Hi this might help

QUESTION
How do I add a banner or message for ftp users?
or
How do I display a banner or message when users connect via FTP?ANSWER
This feature is only available on HP-UX 11.x or later,
and is not available on HP-UX 10.20.

A ???banner??? is displayed when the ftp user connects, before the user enters a
username and password.

A ???message??? can be displayed after the ftp user enters a username and password
and has logged in, similar to Message of the Day (aka /etc/motd).


To add a banner and/or message:

1. In the /etc/inetd.conf file, verify that the -a option is added
to the ftpd daemon line to allow use of the configuration file
/etc/ftpd/ftpaccess. Modify /etc/inetd.conf if necessary.

ex: ftp stream tcp nowait root /usr/lbin/ftpd ftpd ???l -a

2. Modify the file /etc/ftpd/ftpaccess as needed, adding or changing
the ???banner??? and/or ???message??? directive.

NOTE: If /etc/ftpd/ftpaccess does not exist then it is recommended to
copy the ftpaccess file from /usr/newconfig/etc/ftpd/ftpaccess
to /etc/ftpd/ftpaccess and modify accordingly. If a blank
/etc/ftpd/ftpaccess is created, then be sure to also define
a ???class??? directive, otherwise failing to define a valid ???class???
for a host will cause ftp access to be denied.

For a ???banner???
add line: banner

ex: banner /etc/myftpbanner

For a ???message???
change line: message /welcome.msg login
to: message login

ex: message /etc/myftpmessage login


3. To reread the inetd.conf file and cause ftpd to use the
new /etc/ftpd/ftpaccess file execute:

#inetd -c

4. Use ftp to test the new ???banner??? and/or ???message???.


For more information please see man pages for ftpd, ftpaccess, and ftpusers.



Recommended patches for ftpd are:
---------------------------------
Patch PHNE_23949 release for 11.0
Patch PHNE_23950 release for 11.11

As with any patches these may be superceded, please use your normal patch
process or the IT Resource Center (www.itrc.hp.com) for the latest patch
information.CONFIGURATION
Operating System: HP-UX
Version: 11.x
Hardware System: HP9000
Joe Steele
Occasional Advisor

Re: FTP login banner

I would recommend using proftp (www.proftpd.org). it's somewhat easier to use and simplifies administration tasks (ldap authentication, better security, logging, etc).