telnet setting $USER to root

2007-12-24 20:48:00

Since a while we are having the following curious problem on ONE of our Suns
(it's an old Sparc 5 arch sun4m). The problem does not occur on any of our
Suns (in particular we have checked a newer machine which has exactly the same
patch level of Solaris 7 although it's arch is sun4u).

When we login remotely (telnet or rlogin) on one of our machines, a little
scripts issuing escape sequences appropriate to the type of TERM sets the
title bar of the X window to the username and machine. The username is taken
from the environment variable $USER.

This has worked correctly in the past and does work on all machines but one.

When we *telnet* into the strange machine, the variable $USER is set to root,
irrespective of the real username (the variable $LOGNAME is correct).

The variable is set to root already at the very beginning of the .cshrc or
.profile (irrespective of shell). It is set to the correct username if one
uses rlogin instead of telnet.

The telnet daemon executable is the same (same date, same length and same
checksum) on the strange machine and on the other Suns.

Any idea about what is causing this screwup of $USER ?

Please reply directly to me by e-mail (will post a summary to the list)
since I'm not a regular subscriber.

----------------------------------------------------------------------------
Lucio Chiappetti - IFCTR/CNR - via Bassini 15 - I-20133 Milano (Italy)
For more info : http://www.ifctr.mi.cnr.it/~lucio/personal.html
----------------------------------------------------------------------------

Comments

Got something to say?

You must be logged in to post a comment.