Re: X11Forwarding, ssh -X, and /bin/su

From: bad_knee (bl8n8r_at_yahoo.com)
Date: 07/09/04


Date: 8 Jul 2004 20:01:25 -0700

Darren Dunham <ddunham@redwood.taos.com> wrote in message news:<64kHc.8073$UH4.1968@newssvr25.news.prodigy.com>...

> There are several options. One would be to use an authority file that
> isn't on NFS. Copy the file to /tmp (with proper permissions), change
> XAUTHORITY to point to it, and su.

Aaaahaa.. that did it. Thanks.
So before su'ing to another user after ssh'ing into the server,
the current users x cookie has to be readable by the next user, right?
How about we roll something into sshd that would gather this data itself
when the original user logs in - maybe have an sshsu utility of some sort?
(I guess if it was this simple it wouldn't be an issue.. just curious)



Relevant Pages

  • Re: X11Forwarding, ssh -X, and /bin/su
    ... > XAUTHORITY to point to it, ... Aaaahaa.. ... So before su'ing to another user after ssh'ing into the server, ... when the original user logs in - maybe have an sshsu utility of some sort? ...
    (comp.security.ssh)
  • Re: Problem kdialog ohne kde
    ... Hmm... ... läuft auf Deinem frisch gestartetem Server ... Evtl. ... Was genau hat es mit dieser XAUTHORITY auf sich? ...
    (de.comp.os.unix.apps.kde)
  • Re: Capture display on remote (linux) server from (windows) browser
    ... User apache doesn't have a valid .Xauthority, ... > you probably have -nolisten tcp in your X server options. ... Do I have to login with my userid and do xhost +localhost on the shell ...
    (comp.os.linux.x)
  • Re: .Xauthority in a communal home directory.
    ... different user IDs sharing the same home directory, ... however it does simplify administering 400+ servers ... X connection to localhost:11.0 broken (explicit kill or server ... Adding a line to their .profile to remove the .Xauthority when they ...
    (comp.os.linux.x)
  • Re: OpenSSH 4.3p2 X11 forwarding fails to work
    ... system using ssh -X the .Xauthority does not get set and ... The server's configuration needs to allow the X fun to happen. ... Check the sshd_config file on the server, ...
    (comp.security.ssh)