System Administration Guide: Resource Management and Network Services

How to Create Messages to Be Sent to Users

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.

  1. Become superuser.

  2. Add the following entries to the ftpaccess file:


    message message_file [when [class ...]]

    message

    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. 

    message_file

    Name of the message file to be displayed. 

    when

    Parameter that is set as login or cwd=dir. See the following example.

    class

    The class specification allows the message to be displayed only to members of a particular class.

Example: How to Create Messages to Be Sent to Users


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.