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

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?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Perfect! Thanks!

You should edit /etc/motd.tail instead. Let me know if that works :]