Other Articles

Servers – Configure Message of the Day (MOTD)

Support > Fixing Checks > Server

05 March, 2026

This check ensures that the Message of the Day (MOTD) is configured properly. The contents of the /etc/motd file are displayed to users after they successfully log in to the system.

Login banners should contain security warning messages and legal notices required by the organization. The MOTD should not reveal sensitive system details such as operating system name, release, architecture, or version information.

Check Details

  • Resource: Server
  • Check: Configure Message of the Day
  • Risk: If the MOTD displays operating system information such as system architecture, release version, or OS name, attackers may gather useful details about the system and attempt targeted exploits.

Remediation Steps

  1. Open a terminal session on the target server with root or sudo privileges.
  2. Edit the /etc/motd file to configure the login message according to your organization’s security policy.

    sudo nano /etc/motd
    
  3. Ensure that the MOTD contains only approved warning or legal messages and remove any references to operating system information such as:

    • \m (machine architecture)
    • \r (operating system release)
    • \s (operating system name)
    • \v (operating system version)
  4. Save the file after updating the message to match your organization's security policy.

Note: On Container-Optimized OS, the /etc directory is stateless. Therefore, configuration changes may not persist across system reboots and must be reapplied after each system boot.