Startseite > Techinfos > Debian: Überschreiben der /etc/motd verhindern

Debian: Überschreiben der /etc/motd verhindern

Der Tage habe ich den Server mal wieder neugestartet. Was passierte, richtig mein Batman Logo in der /etc/motd wurde wieder duch den BLAHBLAH der default motd ersetzt.


Um zu verhindern das die /etc/motd beim Reboot ersetzt wird sollte man den symlink von /etc/motd auf die /etc/motd.tail entfernen und auf eine eigene Datei symlinken (z.B /etc/motd.static).

5.14 Message of the day

/etc/motd is now a symlink to /var/run/motd which is rebuilt by /etc/init.d/bootmisc.sh from a template, /etc/motd.tail, at each reboot. It means that changes made to /etc/motd will be lost. Changes made into /etc/motd.tail are not automatically applied to /etc/motd other than at reboot.

Also, the EDITMOTD variable at /etc/default/rcS no longer has any effect. If you wish to disable updating of the motd, or want to maintain your own content for the message of the day you just have to point the /etc/motd symlink to a different file such as /etc/motd.static and make your changes there.

Quelle: debian.org

	       _==/          i     i          \==_
	     /XX/            |\___/|            \XX\
	   /XXXX\            |XXXXX|            /XXXX\
	  |XXXXXX\_         _XXXXXXX_         _/XXXXXX|
	 XXXXXXXXXXXxxxxxxxXXXXXXXXXXXxxxxxxxXXXXXXXXXXX
	|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX|
	XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
	|XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX|
	 XXXXXX/^^^^"\XXXXXXXXXXXXXXXXXXXXX/^^^^^\XXXXXX
	  |XXX|       \XXX/^^\XXXXX/^^\XXX/       |XXX|
	    \XX\       \X/    \XXX/    \X/       /XX/
	       "\       "      \X/      "      /"

Quelle: Asciiworld

Categories: Techinfos Tags: , , , ,
  1. No comments yet.
  1. No trackbacks yet.

Comment Spam Protection by WP-SpamFree