Go to main content

Managing System Information, Processes, and Performance in Oracle® Solaris 11.4

Exit Print View

Updated: August 2021
 
 

How to Set Up a Message-Of-The-Day

You can edit the message-of-the-day file, /etc/motd, to include announcements or inquiries to all users of a system when they log in. Use this feature sparingly, and edit this file regularly to remove obsolete messages.

  1. Become an administrator who is assigned the Administrator Message Edit rights profile.

    See Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  2. Edit the /etc/motd file and add a message of your choice.
    $ pfedit /etc/motd

    Edit the text to include the message that will be displayed during user login. Include spaces, tabs, and carriage returns.

  3. Verify the changes by displaying the contents of the /etc/motd file.
    $ cat /etc/motd
    Welcome to the UNIX universe. Have a nice day.