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

Darren Tucker dtucker at zip.com.au
Tue Jun 29 08:44:32 EST 2004


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