Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

2 Answers 2

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
1  
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

 
discard

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.