as many have answered a word from me to add :-
Kedar Patankar wrote:

>

++++++++cut+++++++++++

>         Another observation is that I find the DISPLAY environment

> variable set to "localhost.localdomain:0.0". I searched the /etc/profile,
> /etc/bashrc, and whole of /etc/rc.d tree but nowhere is this variable set.

don't worry about this because telnet of a session does this automatically for
you.
see man page.
"     environ arguments...
                The environ command is used to propagate environment variables

                across the telnet link using the TELNET ENVIRON protocol op-
                tion.  All variables exported from the shell are defined, but
                only the DISPLAY and PRINTER variables are marked to be sent
                by default.  The USER variable is marked to be sent if the -a
                or -l command-line options were used."
                                                -from man page of telnet

>
>         If I try resetting this DISPLAY, by saying "export DISPLAY=", and
> then do a "su", it just dies with a segmentation fault!!!

try using setenv  in csh shell ( is it same behaviour ......).
setenv DISPLAY

>
>         I have observed this behavior on several RH 6.1 boxes. Any clues
> why is that DISPLAY is getting set that way? And why should changing its
> value cause "su" to segfault??

try and see ~/.profile file for initialization script for shell.
echo(ing)  localhost and localdomain what are the valuse of them or
echo localhost.localdomain
or do
echo $DISPLAY
as this should correspond to your ip address from where you are telnetting.
-gaurav.
--
  _
|^|^|                         -^-                     Love to Linux
 \-/ G  A  U  R  A  V          |
mailto:[EMAIL PROTECTED] / mailto:[EMAIL PROTECTED]
  | Sea/She is nature's art/\/ Everybody likes to get the feel of it
|-=-----------------------/-----------------------------------------|
|_|f  I  can  I m a g i n/e  it  I  can  A c h i e v e  it_._.-.-._.|



-----------------------------------------------------------------------
The LIH mailing list archives are available at:
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help

Reply via email to