How to Change the MOTD in CentOS

SumodirjoDIY, Open Source, Tutorial

* – Change Message of The Day (MOTD) in CentOS – *

Message Of The Day(MOTD) is the text which is shown after a user has logged in. We can use this to inform the user of maintenance or basic information like reminding them what they can and cannot do on the system. To change the message of the day, you can open the file /etc/motd with your favorite text editor. For example I added this text to the motd file :
[frame_center src=”” href=””] #########################################################
WARNING
YOU MUST HAVE PRIOR AUTHORIZATION TO ACCESS THIS SYSTEM.
ALL CONNECTIONS ARE LOGGED AND MONITORED.
#########################################################
[/frame_center]

When I try to login, I’ll get the MOTD :
[sumodirjo@kiara ~]$ ssh sissy -l sumodirjo
Last login: Tue Jul 10 07:19:32 2012 from kiara.kurungsiku.com
#########################################################
WARNING
YOU MUST HAVE PRIOR AUTHORIZATION TO ACCESS THIS SYSTEM.
ALL CONNECTIONS ARE LOGGED AND MONITORED.
#########################################################
[sumodirjo@sissy ~]$

Have fun with your MOTD!