Use of the ANONYMOUSHFSINFO file is optional and is applicable only to anonymous users. If no ANONYMOUSHFSINFO file is specified, no messages are displayed to the client when the user changes HFS directories. If an ANONYMOUSHFSINFO file is specified, then each time the anonymous user changes HFS directories, the FTP server will search for the specified file name in the new directory. If the server finds a matching file, the files contents are displayed to the client. If no match is found, no messages are displayed to the client.
Wild cards can be specified as the last character of the ANONYMOUSHFSINFO file name, such as "readme*". This could result in multiple matches. If the server finds multiple matches, only the contents of the first match are displayed to the client.
Example:
The user configures the HFSINFO filename as: readme*
The file /u/user1/readme_user1 contains the words:
Hello anonymous user. You just entered /u/user1
The file /u/user1/xx/readme_xx contains the words:
Hello anonymous user. You entered /u/user1/xx/
When the client logs in, and changes directories, the following is displayed to the client:
D:\>ftp 9.42.103.112 Connected to 9.42.103.112. 220-FTPD1 IBM FTP CS V1R4 at MVS171.tcp.raleigh.ibm.com, 21:15:02 on 2002-10-29. 220-MY BANNER MESSAGE. THIS IS MY EMAIL ADDRESS myaddress@us.mycompany.com 220 Connection will not timeout. User (9.42.103.112:(none)): anonymous 230-HELLO ANONYMOUS USER; THIS IS MY ANONYMOUSLOGIN MESSAGE! 230 'ANONYMOUS' logged on. Working directory is "/u/user3". ftp> cd /u/user1 250-Hello anonymous user. You just entered /u/user1 250 HFS directory /u/user1 is the current working directory ftp> cd xx 250-Hello anonymous user. You entered /u/user1/xx/ 250 HFS directory /u/user1/xx is the current working directory ftp> cd .. 250 HFS directory /u/user1 is the current working directory ftp> cd xx 250 HFS directory /u/user1/xx is the current working directory ftp>
In this example, when the user first changes to directory, /u/user1, the message "250-Hello anonymous user. You just entered /u/user1" is displayed. The user next changes to directory, xx, and the message "250-Hello anonymous user. You entered /u/user1/xx/" is displayed. However, when the user changes back to directory, /u/user1, no message is displayed. The server displays the ANONYMOUSHFSINFO message only the first time a directory is entered. Because the server maintains a finite history of directory changes, if the user performs frequent directory changes, it is possible the client will see the message more than just the first time.
To show a message to the client when changing HFS directories, enter the HFS file containing the message.
Syntax rules: