Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

For some reason I edited motd file yesterday from the standard "Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY..." to my own customized message. After a system restart today, my customized message is gone and it's back to:

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

How can I make my own message permanent? BTW, I am using Debian 6.

share|improve this question
up vote 7 down vote accepted

Debian has /etc/motd as a symlink to /var/run/motd by default. This is updated at boot by /etc/init.d/bootlogs.

To use your own motd simply break the /etc/motd symlink and create it as a regular file.

share|improve this answer
thank you that fixed it. – David Dec 30 '11 at 17:38

No, after an Dist-upgrade you have the old motd. I think the best way is to use the/etc/motd.tail and you can take some additional informations in it.

share|improve this answer
dpkg shouldn't silently replace files - it generally asks first. As /etc/motd.tail is supplied by a Debian package it's more likely that this will get overwritten. – James O'Gorman Dec 30 '11 at 17:45
ah, yeah - you are right. It asks first and many more times the answer is "yes". I always goes the motd.tail way. – Dennis Wisnia Dec 30 '11 at 17:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.