LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2005, 12:53 PM   #1
toothe
LQ Newbie
 
Registered: Nov 2005
Distribution: Slackware
Posts: 5

Rep: Reputation: 0
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.
 
Old 11-08-2005, 01:35 PM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
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.
 
Old 11-08-2005, 05:02 PM   #3
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 415

Rep: Reputation: 86
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/etc/motd skate Linux - Software 5 05-03-2006 09:44 AM
Motd wizex Slackware 6 09-05-2005 09:27 AM
motd iomari Linux - Software 5 04-03-2005 05:43 AM
motd Master Fox Linux - Software 2 08-25-2004 08:40 AM
Is there any MOTD software available besides /etc/motd? csif Linux - Software 1 04-24-2004 07:36 AM


All times are GMT -5. The time now is 09:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration