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.