Go to main content

Securing Systems and Attached Devices in Oracle® Solaris 11.4

Exit Print View

Updated: July 2019

How to Place a Security Message in Banner Files

Use this procedure to create security messages in two banner files that reflect your site's security policy. The /etc/issue file displays before authentication, while the /etc/motd file displays after authentication.

Note -  The sample messages in this procedure do not satisfy U.S. government requirements and likely do not satisfy your security policy. Consult with your company's legal counsel about the content of the security message.

Before You Begin

You must become an administrator who is assigned the Administrator Message Edit rights profile. For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.4.

  1. Create the /etc/issue file and add a security message.
    # pfedit /etc/issue
    This system is available to authorized users only.
    If you are an authorized user, continue.
    Your actions are monitored, and can be recorded.

    The login command displays the contents of /etc/issue before authentication, as do the ssh, graphical-login/gdm, and FTP services.

    For more information, see the issue(5) and pfedit(8) man pages.

  2. Add a security message to the /etc/motd file.
    # pfedit /etc/motd
    This system serves authorized users only. Activity is monitored and reported.

    In Oracle Solaris, the user's initial shell displays the contents of the /etc/motd file.