Hello everybody,
Well: This time, I've found a satisfactory explanation. The problem was,
that the startup script of this particular application changed the $HOME
environment variable to point to its own directory, so that the Xlib could
not access the original $HOME/.Xauthority file anymore. This caused the
MIT-MAGIC-COOKIE-1 authorization to fail.
I've changed the startup script of the application and turned on
MIT-MAGIC-COOKIE-1 authorization again by removing /etc/dt/config/Xconfig
and restarting dtlogin and all is well.
Thanks to the following people for their e-mails:
Sebastian Benoit <benoit@Mathematik.Uni-Marburg.de>
Karl Vogel <vogelke@c17mis.region2.wpafb.af.mil>
Jim Roy <jim@nga.com>
Roger Fujii <rmf@lookhere.com>
I'm appending their replies below followed by my original posting.
Thanks again // Tom
---------------------------------------------------------------------------
From: Sebastian Benoit <benoit@Mathematik.Uni-Marburg.de>
> 1.) I don't know why our application was not accepted by Xsun
> (Message: Connection to ":0.0" refused by server) while other
> applications like Netscape, run just fine without setting the
> local hostname with xhost.
Is your application running under another userid ? Did you 'su' before
starting the program ? Another user cannot connect to the DISPLAY of
course.
> 2.) I don't know why MIT-MAGIC-COOKIE-1 did not work! I've tried the
> following:
>
> - remove .Xauthority and do a fresh login
> - "xauth list" shows:
>
> local-host-name.tu-graz.ac.at:0 MIT-MAGIC-COOKIE-1 43444a4d515451505ab22e7168307134
> local-host-name/unix:0 MIT-MAGIC-COOKIE-1 43444a4d515451505a422e7168307134
looks ok to me.
---------------------------------------------------------------------------
From: Karl Vogel <vogelke@c17mis.region2.wpafb.af.mil>
>> On Mon, 28 Sep 1998 09:59:43 +0200 (MET DST),
>> Thomas Leitner <tom@finwds01.tu-graz.ac.at> said:
T> Well. This is only a partial summary. I received no replies to my
T> request. Maybe it was just too basic or not properly described or
T> something - I don't know.
T> 1.) I don't know why our application was not accepted by Xsun (Message:
T> Connection to ":0.0" refused by server) while other applications like
T> Netscape, run just fine without setting the local hostname with xhost.
I've lost count of the number of times I've had to mess with the DISPLAY
variable before being able to start an application. I generally use one
of the following in either an alias or a small shell script:
DISPLAY = :0.0
DISPLAY = unix:0.0
DISPLAY = myhost:0.0
---------------------------------------------------------------------------
From: Jim Roy <jim@nga.com>
I don't pretend to know enough about X authentication to coach
anyone else, but I had a thought. We have several users
who are always playing musical chairs, and su'ing to their
own accounts, so right after boot up, I always have to cp
.Xauthority from ~whoeverloggedin to ~everybodyelse. Could
your application be runing under a different UID than the login
user?
---------------------------------------------------------------------------
From: Roger Fujii <rmf@lookhere.com>
It *does* make a difference whether one connects as
DISPLAY=:0
DISPLAY=localhost:0
DISPLAY=fqdn:0
Also, the default stuff is sensitive to the user who starts the program, so
if your app is a suid program, it will fail..
Hope this helps.
--------------------- o r i g i n a l p o s t i n g --------------------
From: Thomas Leitner <tom@finwds01.tu-graz.ac.at>
Subject: LOCAL: in /etc/X0.hosts does not work in Solaris 2.6 ...
Hi,
I have an application which needs (for reasons I don't understand)
the local host name to be added to the host based X authorization.
So under Solaris 2.5, I just used to put "hostname" into /etc/X0.hosts,
where "hostname" was the name of the local host, and everything was fine.
Entering "xhost" in an dtterm listed that "hostname" among others.
Now after upgrading to Solaris 2.6, this doesn't work anymore.
All hostnames *but* the name of the local host are taken from
/etc/X0.hosts when Xsun starts.
I have already tried to put LOCAL: in /etc/X0.hosts, but no avail.
I always have to open up a dtterm and manually enter "xhost +local:"
or "xhost +name-of-local-host" to get this app. working.
Needless to say, that this is quite annoying. I have the same behaviour
one both, an SS20 and an LX with a freshly installed Solaris 2.6.
Anyone any clue for me?
Thanks // Tom
P.S: Yes, I made sure to really restart Xsun after modifying
/etc/X0.hosts.
--------------------------------------------------------------------------
T o m L e i t n e r Dept. of Communications
Graz University of Technology,
e-mail : tom@finwds01.tu-graz.ac.at Inffeldgasse 12
Phone : +43-316-873-7455 A-8010 Graz / Austria / Europe
Fax : +43-316-463-697
Home page : http://wiis.tu-graz.ac.at/people/tom.html
PGP public key on : ftp://wiis.tu-graz.ac.at/pgp-keys/tom.asc or send
mail with subject "get Thomas Leitner" to pgp-public-keys@keys.pgp.net
--------------------------------------------------------------------------
Before we have the paperless office, we have the paperless toilet!
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:49 CDT