Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: X11 forwarding after su'ing

From: Philipp Strozyk <Philipp.Strozyk(at)epost.de>
Date: Mon Apr 28 2003 - 15:25:04 EDT


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 /.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.
Received on Tue Apr 29 14:22:19 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:58 EDT

Do you need help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library