Create a login message for your server – The “motd” file under Unix

Hi, it’s very interesting. There is one file ‘motd‘ under the /etc location where you can add the welcome message.
motd stands for “Message of the Day”.

The contents of /etc/motd is displayed while you are log into the server. Please find the example below:

# cat /etc/motd
+++++++++++++++++++
You are currently logged into a very secure system. All your actions are recorded. Be careful.
+++++++++++++++++++
Last login: Mon Mar  3 18:02:16 2014 from xxx.xx.xx.xx
+++++++++++++++++++
You are currently logged into a very secure system. All your actions are recorded. Be careful.
+++++++++++++++++++
[[email protected] ~]$ 

That’s it. 🙂

Post navigation

Arunlal Ashok

Linux Systems Architect at Endurance International Group. I know her (Linux) since many years. Linux lover. Like to play on Linux console. I started this blog to share and discuss Linux thoughts.

Always happy for an open discussion! Write to arun (@) crybit (dot) com. Check about me for more details. About this blog and our strong members, check The team CryBit.com

Leave a Reply

Your email address will not be published. Required fields are marked *