Report this

What is the reason for this report?

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

Posted on July 21, 2013

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?



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!

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.

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

Perfect! Thanks!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.