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.


  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.





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.