RE: X11 forwarding after su'ing

From: Hoerauf, Roy (Roy.Hoerauf_at_cwusa.com)
Date: 04/28/03

  • Next message: Jennifer Fountain: "RE: public/private keys on openssh for windows"
    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


  • Next message: Jennifer Fountain: "RE: public/private keys on openssh for windows"

    Relevant Pages

    • Re: e-mail x-html - How to Learn?
      ... > but cannot seem to get the knack for displaying graphics. ... > my webserver, the graphics won't display. ... Reference to remote images is a common characterstic of spam, ... Roy S. Schestowitz | "Free the mind, ...
      (alt.html)
    • Re: P4B533 "siren" noise, will not boot.
      ... Now when I start the computer, it beeps as a siren and there is display on the monitor. ... Hi Roy, ... Try reseating your power cables to motherboard again. ...
      (alt.comp.periphs.mainboard.asus)
    • Re: Busy Program
      ... Silly coder using go to's ... delete the DISPLAY statement. ... Roy, ... But then people would not know how much you love COBOL! ...
      (comp.sys.tandem)
    • Re: NRM steam loco collection
      ... with individual cast cylinders replacing the monobloc - which could be put on display in one of the NRM halls? ... Roy ...
      (uk.railway)
    • Re: ssh X11 forwarding not working on FreeBSD 6.2
      ... SSH X11 forwarding sets the DISPLAY variable to something like: ... environment variable equal to the IP address and display of the XP ... Only one instance of Xming is running on the Windows XP system. ... Xlib: PuTTY X11 proxy: wrong authentication protocol attempted ...
      (freebsd-questions)

  • Quantcast