How do I permanently change /etc/motd on a Ubuntu install?

Posted July 21, 2013 6.5k views
I've tried setting up crontab to run a python script that replaces the contents of /etc/motd. Although the contents of the file changes, it appears to have no effect when I log back in and the contents is reset. I've looked into update-motd, but this doesn't seem to be used. Is there a way to permanently change the contents of the file?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers
You should edit /etc/motd.tail instead. Let me know if that works :]