The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Motd BOFH Linux 5 01-19-2007 06:17 AM
Motd DragonLenage UNIX for Dummies Questions & Answers 4 02-20-2005 03:36 AM
replacing old motd with new motd antalexi Shell Programming and Scripting 2 11-30-2004 09:42 AM
MOTD File? Rex00me UNIX for Advanced & Expert Users 14 02-15-2002 10:40 AM
Editing motd killerserv Security 3 01-09-2002 02:48 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 01-06-2005
Registered User
 

Join Date: Dec 2004
Posts: 38
/etc/motd

Hi

I do get the message of the day upon logging in to my machine(Solaris 9). I do NOT have a .hushlogin file in my home directory.

Any ideas
:-)
Reply With Quote
Forum Sponsor
  #2  
Old 01-06-2005
Registered User
 

Join Date: Dec 2004
Posts: 38
Sorry, that should be:
I do NOT get the message of the day , instead of I do get the message of the day.
Reply With Quote
  #3  
Old 01-06-2005
Registered User
 

Join Date: Dec 2004
Posts: 38
Sorry again for bothering.
I seem to have found out the solution:
I do not have an /etc/issue file but that leads to another
question? Is'nt /etc/motd enough to display the message of the day?

Regards
;_0
Reply With Quote
  #4  
Old 01-06-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
/etc/issue is printed before the login prompt. /etc/motd is printed after you login. How motd is printed depends on your shell. And it is only printed for true logins. Try "telnet localhost" and then login. Now do you see the motd? If not, what shell are you using?
Reply With Quote
  #5  
Old 01-06-2005
Registered User
 

Join Date: Dec 2004
Posts: 38
I get the motd when I telnet into the box.
However, when I ssh into the box I do not get it.
Ultimately I would be closing the telnet service and
would connect only through ssh. btw. I am using bash
and it does not have anything suspicious.
I also get the contents of the /etc/issue and NOT the
ones of /etc/motd.
Reply With Quote
  #6  
Old 01-06-2005
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
Then you need to configure your sshd to print motd if you want. Look at the docs for your sshd. There should be an option.
Reply With Quote
  #7  
Old 01-06-2005
Registered User
 

Join Date: Dec 2004
Posts: 38
I have tried this on a new solaris box, one without ssh.
However, I still have no luck on this one either.
Only the contents of /etc/issue get displayed but not
/etc/motd. Do I need to start some kind of service of
some sort(just a guess)?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 07:12 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0