System Administration Guide: Network Services

ProcedureHow 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 or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. 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.

Example 28–10 Creating 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.