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.
+++++++++++++++++++
[root@server ~]$ 

That’s it. 🙂

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

Leave a Reply

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