X11 does not work when I su to a different user.

From: DM (don.monk_at_genmills.com)
Date: 05/18/05


Date: Wed, 18 May 2005 07:56:11 -0500

Here is the scenario:

 From Server A (HP-UX 11.11) I ssh to Server B (HP-UX 11.23)

ssh -X -l user1 ServerB

 From user1 I can get X11 to work:

xclock

On host ServerB if I su - to user1 from user1 and export my DISPLAY it
still works.

However, on Server B, if I su - to user 2 it does not work. I get the
error:
X11 connection rejected because of wrong authentication

We have X11 fowarding enabled in sshd_config.

I have tried playing with xhosts etc.

It seems this "cross" user pipe does not work.

Any help is greatly appreciated!!!!

thanks,
DM



Relevant Pages

  • Re: probleme mit ssh
    ... waehrend das entfernte System der Server ist. ... Bei X11 ist alles andersherum, da ist das entfernte System der Client ... und dein lokales Display der Server. ... DArum brauchsts bei SSH ...
    (de.comp.os.unix.networking.misc)
  • Re: Opinion: I was just trying to sell OpenVMS
    ... that is *not* the reason - an X11 server can crash the system as well ... not in a driver is that the path was already too long. ... primitive IO calls to a kernel driver. ...
    (comp.os.vms)
  • Ye Old Time Sharing System
    ... Paul Graham has stated that clients are a loose. ... Running an application on the server is a great way to have full ... also thought about how I can use 'ssh -X' to run an X11 app on my Mac ... Suppose a Lisp image running The Foo Web App can ...
    (comp.lang.lisp)
  • Re: probleme mit ssh
    ... waehrend das entfernte System der Server ist. ... und dein lokales Display der Server. ... DArum brauchsts bei SSH ... SSH hat das fuer X11 aber bereits ...
    (de.comp.os.unix.networking.misc)
  • Re: PCanywhere and VAX VMS
    ... >that the VNC server for Windows does. ... >take over an existing X11 login on the UNIX system. ...
    (comp.os.vms)