Tech Junkie Blog - Real World Tutorials, Happy Coding!: Linux Administration: Message Of The Day

Monday, August 23, 2021

Linux Administration: Message Of The Day

As a Linux administrator you can set the message of the day for users to see when they are logged in.  It could be a reminder of a maintenance schedule or just to say high.  Or if you want to get fired a fake hacked message...j/k...lol  It does seemed like someone hacked your system sometimes when you see it as a user though.

The file that controls the Message of The Day message (pun) is located in /etc/motd 

All you have to do is modify the file to display the message to the users in your system.

So vi /etc/motd and type in your message and the next time a user logs in he will see the message

One caveat is that it will only appear in text terminal session login such as logging in using Putty you will not see the message if you log in using the GUI.






Unfortunately, you've been told that you've been hacked by Kanya's evil twin brother, who's a better rapper!

 

No comments:

Post a Comment

Search This Blog