unix login welcome message


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers unix login welcome message
# 8  
Old 11-15-2004
I find this quite odd Smilie

On my Solaris 9 box, when I telnet (or SSH) into the server, /etc/motd just contains the single line
Sun Microsystems Inc. SunOS 5.9 Generic January 2003

Now, if your /etc/motd contains a similar single line pertinent to your version of Solaris, then one of the startup scripts must be in some way, shape, or form, executing either directly or by way of another script, something along the lines of
Code:
echo "YO!"
date

You could grep within your home directory for "YO!".

Is your home directory mounted over NFS?

Cheers
ZB
# 9  
Old 11-15-2004
Yeah I tried to grep for "YO!" but no luck.
Quote:
Is your home directory mounted over NFS?
Not sure about this one...
# 10  
Old 11-15-2004
I tried to insert my own message into /etc/motd and the message showed up just above the "YO!"
Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
TEST
YO!
Mon Nov 15 17:56:47 EST 2004

So how's date generated, may be it's in there?
# 11  
Old 11-15-2004
Have a look at /etc/vfstab - is there a line for /export/home that says "nfs" in the fourth column (this is a "rough" guide - your vfstab will probably differ)?

My reasoning here is that if your home directory is mounted via NFS, and an erroneous script is being executed, this would explain why the behaviour is the same for each server you log into.

Cheers
ZB
# 12  
Old 11-15-2004
Here is what I would do, something like:

Code:
 find / -exec grep "YO!" {} \;

You might want to add a flag to find to print the file where the match is found.
# 13  
Old 11-15-2004
Re: unix login welcome message

Quote:
Originally posted by webtekie
[B]
Last login: Mon Nov 15 16:59:13 from xxx.xxx.xxx.xxx
Sun Microsystems Inc. SunOS 5.8 Generic Patch October 2001
YO! <-- message
Mon Nov 15 17:19:05 EST 2004
/B]
I have been looking at the login sequence on a Sun box. The first line (Last login) is printed by the login program itself. The second line should be the contents of /etc/motd and is printed by code in /etc/profile. This means that the lines are being printed by your own startup scripts.


mv .profile .profile.save

and login again. Do you still see the message? If so, do
echo $ENV
and tell us what that command says.

If moving .profile out of the way suppressed the message, it is in there somewhere. Put .profile back and edit it. Add a line:
echo at point one
as the very first line. And a line:
echo at point two
as the very last line. Does the message appear bewteen the two new echos? If so, move then until you zero in on the offending line.
# 14  
Old 11-16-2004
Quote:
Originally posted by Neo
Here is what I would do, something like:

Code:
 find / -exec grep "YO!" {} \;

You might want to add a flag to find to print the file where the match is found.
yup. what i was going to suggest. just search your whole disk for that string.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Post Here to Contact Site Administrators and Moderators

Login message

My location is set to London. Why does the 2nd line of my welcome message say "You are somewhere around Glasgow."? (1 Reply)
Discussion started by: Robert W.Mills
1 Replies

2. Shell Programming and Scripting

How to change banner message for console login?

Hi All, Whenever I login to server via console, after providing username (root) it displays a banner message. I want to remove this message Serverabc : root Welcome to Server !!! Password: It is Centos 5.4 box. I have checked /etc/issue and /etc/motd. It does not... (8 Replies)
Discussion started by: kalpeer
8 Replies

3. AIX

Really strange unix message

We are getting this message on our AIX box. No one knows where its coming from. Where can I find any information on it? Warning: file system free space is less than 10 file system total size = -2621440 file system available space = 2485160 file system used space = -5106592 file system... (3 Replies)
Discussion started by: t01scra
3 Replies

4. Solaris

A DT Message error on login... other symptoms

First let me apologize for joining and posting... but this thing is killing me. I can usually solve these problems myself but I am reaching for help now. I have about 2 years Unix 8 experience but I am by no means an expert but not a newb either. A little background. My system runs a... (8 Replies)
Discussion started by: mpb218
8 Replies

5. Solaris

error message rmclomv ... SC Login Failure for user Please login:

Hello World ~ HW : SUN Fire V240 OS : Solaris 8 Error message prompts 'rmclomv ... SC login failure ...' on terminal. and Error Message prompts continually 'SC Login Failure for user Please login:' on Single Mode(init S) The System is in normal operation, though In case of rain, Can... (1 Reply)
Discussion started by: lifegeek
1 Replies

6. HP-UX

telnet banner message before login

why I didn't set /etc/inetd.conf telnet stream tcp nowait root /usr/lbin/telnetd \ telnetd -b /etc/issue only telnet stream tcp nowait root /usr/lbin/telnetd in /etc/ineted.conf but when I telnet my HPUX machine it shows those message HP-UX hp1008 B.11.31 U ia64 (tb) login: ... (1 Reply)
Discussion started by: alert0919
1 Replies

7. UNIX for Dummies Questions & Answers

login message

hi friends.....can anyone help me out.... i want to display a message whenever a user logs in...like goodmorning,goodafternoon etc depending on the time of login.can anyone suggest a shell script for this???? (2 Replies)
Discussion started by: nikhilneela
2 Replies

8. UNIX for Dummies Questions & Answers

I want to change login failure message, "login incorrect"

I want to change login failure message, "login incorrect" deny user login for user id tom sudo passwd -l tom type username and type password on login prompt and then it will display login failure message "login incorrect" console ############ login: tom password: login incorrect... (2 Replies)
Discussion started by: lifegeek
2 Replies

9. UNIX for Dummies Questions & Answers

Remove login message

Hi All expert, I am about to perform remote shell to another unix server. But whenever i logged in into the remote server, the message prompt, "Setting up environment for MCI backend databases on Oracle 9.2^J" I'm suppose to rsh and cat a flat file that return only number. I tried "nohup"... (4 Replies)
Discussion started by: agathaeleanor
4 Replies
Login or Register to Ask a Question