Skip to content

1.7.1 Ensure message of the day is configured properly

Audit#

Run the following command and verify no results are returned:

# grep -Eis "(\\\v|\\\r|\\\m|\\\s|$(grep '^ID=' /etc/os-release | cut -d= -f2 | sed -e 's/"//g'))" /etc/motd

Remediation#

Edit the /etc/motd file with the appropriate contents according to your site policy, remove any instances of \m , \r , \s , \v or references to the OS platform OR if the motd is not used, this file can be removed.

Run the following command to remove the motd file:

# rm /etc/motd