HP-UX Reference (11i v3 07/02) - 4 File Formats (vol 8)

f
ftpaccess(4) ftpaccess(4)
message path [ when [ class... ]]
Define a file with path such that
ftpd will display the contents of the file to the user at login time or
upon using the change working directory command. The when parameter may be
LOGIN or
CWD=dir. If when is CWD=dir, dir specifies the new default directory which will trigger the
notification.
The optional class specification allows the message to be displayed only to members of a particular
class. More than one class may be specified.
In the message file, the user can key in a message and use the "macros" or "magic cookies" that are
available. The ftp server will replace the cookie with a specified text string. The following magic
cookies are available:
%T local time (form Thu Nov 15 17:12:42 1990)
%C current working directory
%E the maintainer’s email address as defined in ftpaccess
%R remote host name
%L local host name
%u username as determined via RFC931 authentication
%U username given at login time
%M maximum allowed number of users in this class
%N current number of users in this class
%B absolute limit on disk blocks allocated
%b preferred limit on disk blocks
%Q current block count
%I maximum number of allocated inodes (+1)
%i preferred inode limit
%q current number of allocated inodes
%H time limit for excessive disk use
%h time limit for excessive files ratios:
%xu Uploaded bytes
%xd Downloaded bytes
%xR Upload/Download ratio (1:n)
%xc Credit bytes
%xT Time limit (minutes)
%xE Elapsed time since login (minutes)
%xL Time left
%xU Upload limit
%xD Download limit
The message will only be displayed once to avoid annoying the user. Remember that when messages
are triggered by an anonymous FTP user, the path must be relative to the base of the anonymous FTP
directory tree.
readme path [ when [ class ]]
Define a file with path such that ftpd will notify user at login time or upon using the change working
directory command that the file exists and was modified on such-and-such date. The when parameter
may be
LOGIN or CWD=<dir> .Ifwhen CWD=<dir>, dir specifies the new default directory which
will trigger the notification. The message will only be displayed once, to avoid bothering users.
Remember that when README messages are triggered by an anonymous FTP user, the path must be
relative to the base of the anonymous FTP directory tree.
114 Hewlett-Packard Company 5 HP-UX 11i Version 3: February 2007