How can I change the message of the day on my Linux server?
The abbreviation "motd" stands for "message of the day", and this file has been traditionally used for exactly that (it requires much less disk space than mail to all users). To change what your current message reads, you need to edit /etc/motd file. Now whenever your users login, they will be see whatever you have placed in this file.
The message of the day can be used to communicate important information about your
server to end users, or to remind users something important.
To change what your current message, you need to edit /etc/motd file using text editor such as vi. For example display following messge to all users:
# vi /etc/motd
Add following sample message to it (remove existing message):
All your actions are being logged for security purposes. If you have any question please contact our tech-support:
Email: support@nixcraft.in
Voice: (020)-5556668 (Ext. 101)
Web: http://support.nixcraft.in/
Subscribe to our free e-mail newsletter or RSS feed to get all updates.
You can Email this page to a friend.
Related Other Helpful FAQs:
- How to Change the vsftp or vsftpd server banner message
- Linux display or change a pre-login message - /etc/issue file
- Change the From: email address in PHP mail()
- Change default Linux / UNIX text editor from VI to Pico
- Linux change the runlevel for a server without rebooting
Leave a Reply
We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!



Recent Comments
Today ~ 5 Comments
Today ~ 1 Comment
Yesterday ~ 1 Comment
Yesterday ~ 2 Comments
Yesterday ~ 10 Comments