After the user is logged in, system-related or application-related messages are displayed on screen. The ftpaccess file lists the events that trigger associated message statements.
Become superuser.
Add the following entries to the ftpaccess file:
message message_file [when [class ...]] |
Keyword that is used to specify the message file to be displayed when a user logs in or executes the command to change the working directory.
Name of the message file to be displayed.
Parameter that is set as login or cwd=dir. See the following example.
The class specification allows the message to be displayed only to members of a particular class.
message /etc/ftpd/Welcome login anon guest message .message cwd=* |
The preceding example states that the file /etc/ftpd/Welcome is displayed at login for users of the class anon or guest. The second line states that the .message file in the current working directory is displayed for all users.
Message files are created relative to the chroot directory for guest and anonymous users.