X user application fails come up but xclock and xterm come up

Raju, Narendra nraju at siemens-emis.com
Wed Jun 30 04:54:16 EST 2004


Darren ,

 I used ssh client with debug mode to run user X application
I get following error messages

"X11 connection uses different authentication protocol"
"X11 Connection rejected because of wrong authentication"

Thanks 

Naren
-----Original Message-----
From: Darren Tucker [mailto:dtucker at zip.com.au]
Sent: Monday, June 28, 2004 5:45 PM
To: Raju, Narendra
Cc: 'openssh-unix-dev at mindrot.org'
Subject: Re: X user application fails come up but xclock and xterm come
up


Raju, Narendra wrote:
>    Thank you for your response. I did set X11UseLocalhost to yes. It work
> only
> if login as "spsy" user who is owner of user X application(the mode of
> application is "
> -rwsrwsr-x". If login as other user(who are have permission to exe) I ma
not
> able run X application.
> 
> Is SSH lose efffective user ID(EUID) of login user? 
> I am using Hummingbird SSH client.

Your application is setuid (and setgid), so what's probably happening is 
the X11 "Magic cookie" that sshd puts into .Xauthority (with the "xauth" 
command) does not match what your application sends (since the uid that 
the application is running under has no .Xauthority or one that doesn't 
match).

Try telling your application (or rather, its X libraries) where to find 
the .Xauthority file by running something like:

XAUTHORITY=/home/yourdir/.Xauthority /path/to/yourapp

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
     Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.




More information about the openssh-unix-dev mailing list