Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

AIX FTP Banner problem

308 views
Skip to first unread message

Ronald

unread,
Sep 14, 2004, 7:31:05 AM9/14/04
to
Good Day All

I am trying to set up a multi line login banner on AIX. I have gone
thru the following steps

cd /usr/lib/nls/msg/en_US
dspcat -g ftpd.cat > ftpd.msg
vi ftpd.msg
gencat ftpd.cat ftpd.msg
refresh -s inetd

When I login from Microsoft I can see the banner, but when I login
from another unix box I am unable to view the login banner. All I am
able to see is user:

If someone can assist me, pleases help

Thank you

Ronald

Paul Landay

unread,
Sep 14, 2004, 8:58:02 AM9/14/04
to Ronald
For AIX levels <= 5.1 you can only have
one line (no '\n') in each ftpd.cat entry,
in particular for ftp messages 220 and 230.


For AIX 5.2 and later -

found the method for AIX 5.2 in the AIX 5.2 differences guide:

The ftpd server has been enhanced to allow the administrator to
display messages before and after ftp login ...
To use the new ftpd enhancements, you must create the ftpd
configuration file /etc/ftpaccess.ctl. If this file does not exist,
the ftpd server will behave as normal.
The configuration keywords can be broken up into four different
groups: Notification, host restriction, directory restriction, and
restricted users. The complete list of the supported keywords and
their expected parameters are listed in the following. Lines starting
with unsupported keywords are silently ignored.

# Notification
herald: filename
motd: on|off
...

The notification group keywords allows the administrator to configure
the ftpd server to send messages to the FTP client before and after
the user logs in. The herald keyword configures ftpd to send a
message to the client before logging in. The herald keyword requires
one parameter, the name of the file containing the message to send.
The motd keyword configures the ftpd to send the contents of the
message of the day file (motd) after the FTP user logs in. The motd
keyword requires one parameter either on or off. The motd file must
be located in the home directory of the user. The following example
shows how to use the herald and motd keywords and the contents of the
ftpaccess.ctl, ftphearld.txt, and root?s motd file.

# cat /etc/ftpaccess.ctl
herald: /etc/ftpherald.txt
motd: on

# cat /etc/ftpherald.txt

Welcome to our FTP Server

#cat /motd

This is roots?s MOTD

# ftp ftp.mycompany.example
Connected to ftp.mycompany.example.
220-
220-Welcome to our FTP Server
220-
220 ftp.mycompany.example FTP server (Version 4.1 Mon Aug 19 21:52:59
CDT 2002) ready.
Name (ftp.mycompany.example:root):
331 Password required for root.
Password:
230-Last unsuccessful login: Sun Sep 8 01:32:26 CDT 2002 on
/dev/pts/4 from sig-9-65-80-212.mts.ibm.com
230-Last login: Sun Sep 8 23:35:25 CDT 2002 on /dev/pts/4 from
here.mycompany.example
230-
230- This is roots?s MOTD
230-
230 User root logged in.
ftp> quit


The book refered to above should be available at:
http://www.redbooks.ibm.com/
by seaching on 'aix 5.2 differences'
or at:

http://publib-b.boulder.ibm.com/Redbooks.nsf/RedbookAbstracts/SG245765.html
I can't confirm that URLs right now
but I think they are correct.

Paul Landay

0 new messages