Use the ANONYMOUSLOGINMSG statement
to specify a z/OS® UNIX file or MVS™ data
set whose contents are to be displayed to the end user when an anonymous
user logs in.
Syntax
>>-ANONYMOUSLOGINMSG--file-path--------------------------------><
Parameters
- file-path
- Either a z/OS UNIX path name or a fully qualified MVS data set name. If the first character is
a slash, file-path is considered a z/OS UNIX name;
otherwise, it is treated as a fully qualified MVS data set name.
Rules: - When specifying a z/OS UNIX file-path, file-path is
always an absolute pathname in the anonymous user's root directory.
The anonymous user's root directory depends on the values coded
or set to the default value for ANONYMOUSLEVEL and STARTDIRECTORY
statements in FTP.DATA.
- When ANONYMOUSLEVEL 1 is coded in FTP.DATA, or when STARTDIRECTORY MVS is coded in FTP.DATA, the anonymous
user's root directory is the z/OS UNIX root directory. Therefore,
you specify file-path as an absolute pathname
in the z/OS UNIX without regard to the anonymous user's
home directory.
- When the ANONYMOUSLEVEL value is greater than one, and the STARTDIRECTORY
is z/OS UNIX, the anonymous user's root directory is
the anonymous userID home directory. Therefore, the file identified
by file-pathhas to reside within the anonymous
user's home directory or one of its subdirectories, and you specify file-path as
an absolute pathname, but relative to the anonymous userID home directory.
Examples
To display the contents of the
TCPIP.ANONYM.LOGIN.MSG data set when an anonymous user logs into FTP,
enter the following code:
ANONYMOUSLOGINMSG TCPIP.ANONYM.LOGIN.MSG
For
example, you might have created userID GUEST with home directory /u/anonymous
for anonymous logins, and you have coded these statements in FTP.DATA:
- ANONYMOUS GUEST
- ANONYMOUSLEVEL 3
- STARTDIRECTORY HFS
- ANONYMOUSFILEACCESS HFS
To display the contents of /u/anonymous/banner when an
anonymous user logs into FTP, code the following statement in FTP.DATA:
ANONYMOUSLOGINMSG /banner
To
display the contents of /etc/banner when an anonymous user logs into
FTP, you must copy /etc/banner into /u/anonymous or into a subdirectory
such as /u/anonymous/etc because the z/OS UNIX directory /etc is outside the
anonymous userID's root directory.
Again, suppose you have
created userID GUEST with home directory /u/anonymous for anonymous
logins, and you have coded these statements in FTP.DATA:
- ANONYMOUS GUEST
- ANONYMOUSLEVEL 1
To display the contents of /u/anonymous/banner when an
anymous user logs into FTP, code the following statement in FTP.DATA:
ANONYMOUSLOGINMSG /u/anonymous/banner
In
this case you specify the pathname /u/anonymous/banner because the
anonymous userID root directory is /.
Usage notes
- ANONYMOUSLOGINMSG is not dependent upon the value of ANONYMOUSLEVEL.
- If an installation is required to display the same login messages
to both anonymous and known users, the same file-path can be specified
on both the ANONYMOUSLOGINMSG and LOGINMSG statements.