That doesn't seem to be working either.  Maybe there is something else going 
on?  Notice the "X11 connection rejected" error:

[mat...@quadzilla ~]$ ssh -Y emat...@aerogold
emat...@aerogold's password: 
Last login: Thu Mar 18 14:51:42 2010 from quadzilla.aero.nd.edu
X11 connection rejected because of wrong authentication.
X11 connection rejected because of wrong authentication.
xhost:  unable to open display "localhost:10.0"
[emat...@aerogold ~]$ echo $XAUTHORITY
XAUTHORITY: Undefined variable.

thanks,
eric


--- On Thu, 3/18/10, Carson Gaspar <[email protected]> wrote:

> From: Carson Gaspar <[email protected]>
> Subject: Re: [OpenAFS] significant delay for afs user to login as root via su
> To: "David S. Goldberg" <[email protected]>
> Cc: "Ken Hornstein" <[email protected]>, [email protected], 
> [email protected]
> Date: Thursday, March 18, 2010, 2:03 PM
> David S. Goldberg wrote:
> >> - Assuming you're using ssh (I am guessing that
> you are), convince sshd
> >>   to write your Xauthority
> information somewhere else, like a file
> >>   in /tmp (and make sure your
> XAUTHORITY environment variable is correct).
> >>   I would guess this is possible,
> but I don't know if there's an easy
> >>   way to do it.
> > 
> > I do this with the following code in ~/.ssh/rc:
> > 
> > if [ "$DISPLAY" = "" ]; then exit 0 ; fi
> > if [ ! -d /tmp/.${USER} ]; then # I actually don't
> reference $USER -
> >               
>            
>    # just put your own ID there.
> >     /bin/sh -c "umask 77 ; mkdir
> /tmp/.${USER}" ; 
>    XAUTHORITY=/tmp/.${USER}/.Xauthority;
> 
> Please don't use that code if you want something robust.
> Use something like the below (tossed off in a few seconds,
> so take with a grain of salt):
> 
> unset XAUTHORITY
> if test ! -d "/tmp/.${USER}"; then
>     (umask 77; echo mkdir "/tmp/.${USER}")
> && \
>     XAUTHORITY="/tmp/.${USER}/.Xauthority"
> else
>     touch "/tmp/.${USER}/.Xauthority"
> && \
>     XAUTHORITY="/tmp/.${USER}/.Xauthority"
> fi
> if test -z "${XAUTHORITY}"; then
>     # Something is wrong
>     test -t 2 && echo "Could not set
> XAUTHORITY" 1>&2
> fi
> 
> -- Carson
> _______________________________________________
> OpenAFS-info mailing list
> [email protected]
> https://lists.openafs.org/mailman/listinfo/openafs-info
> 



_______________________________________________
OpenAFS-info mailing list
[email protected]
https://lists.openafs.org/mailman/listinfo/openafs-info

Reply via email to