RE: X11 forwarding after su'ing
From: Hoerauf, Roy (Roy.Hoerauf_at_cwusa.com)
Date: 04/28/03
- Previous message: andy: "Re: sshd timeout?"
- Maybe in reply to: Hoerauf, Roy: "X11 forwarding after su'ing"
- Next in thread: Philipp Strozyk: "Re: X11 forwarding after su'ing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 28 Apr 2003 15:49:47 -0400 To: "Philipp Strozyk" <Philipp.Strozyk@epost.de>, <secureshell@securityfocus.com>
Yes, that worked.
Thank you very much.
Roy
-----Original Message-----
From: Philipp Strozyk [mailto:Philipp.Strozyk@epost.de]
Sent: Monday, April 28, 2003 3:25 PM
To: secureshell@securityfocus.com
Cc: Hoerauf, Roy
Subject: Re: X11 forwarding after su'ing
Hi,
try to set the DISPLAY-environment-variable correctly, then copy the .Xauthority-file from the
initial-ssh-login-home-dir to the home of the user you su'ed to.
Philipp
$ echo $DISPLAY
localhost:10.0
$ /usr/openwin/bin/xclock
$ su -
Password:
Sun Microsystems Inc. SunOS 5.8 Generic February 2000
# echo $DISPLAY
# /usr/openwin/bin/xclock
Error: Can't open display:
# DISPLAY=localhost:10.0;export DISPLAY
# /usr/openwin/bin/xclock
Xlib: connection to "localhost:10.0" refused by server
Xlib: Authentication failed at PuTTY X11 proxy
Error: Can't open display: localhost:10.0
# ls -la .X*
.X*: No such file or directory
# cp <YOUR_INITIAL_SSH_LOGIN_HOME_HERE>/.Xauthority .
# DISPLAY=localhost:10.0;export DISPLAY
# /usr/openwin/bin/xclock
#
On 28 Apr 2003 at 13:28, Hoerauf, Roy wrote:
> I am having a little problem figuring this out.
>
> I ssh to a Solaris box. X11 forwarding works, no problem here. I 'su' to a different user.
>
> What do I have to do to get X11 forwarding to work for the 'su' user. I think it is just some configuration changes, but I have not been able to figure it out.
>
> I am running OpenSSH 3.6.1p1 on Solaris 8, with Putty as my client.
>
> Thanks
>
>
> Roy
- Previous message: andy: "Re: sshd timeout?"
- Maybe in reply to: Hoerauf, Roy: "X11 forwarding after su'ing"
- Next in thread: Philipp Strozyk: "Re: X11 forwarding after su'ing"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|