LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   motd (https://www.linuxquestions.org/questions/linux-newbie-8/motd-381142/)

toothe 11-08-2005 11:53 AM

motd
 
i am using slackware 10.2 and after changing the default MOTD /etc/motd file, i loged in and this was the motd file displayed. after restarting the box the file had reverted to the old file.

fouldsy 11-08-2005 12:35 PM

What had you changed /etc/motd to - what was the content of it? It should just work as a normal text file so long as you're trying to put any special formatting in.

imitheos 11-08-2005 04:02 PM

Re: motd
 
Quote:

Originally posted by toothe
i am using slackware 10.2 and after changing the default MOTD /etc/motd file, i loged in and this was the motd file displayed. after restarting the box the file had reverted to the old file.
I quote from "/etc/rc.d/rc.S"

Code:

# Setup the /etc/motd to reflect the current kernel level:
# THIS WIPES ANY CHANGES YOU MAKE TO /ETC/MOTD WITH EACH BOOT.
# COMMENT THIS OUT IF YOU WANT TO MAKE A CUSTOM VERSION.
echo "$(/bin/uname -sr)." > /etc/motd

In other words, every time the os boots it changes the motd file
As it says comment the "echo" line and then edit the file and put whatever you want.


All times are GMT -5. The time now is 11:31 PM.