[OpenAFS] significant delay for afs user to login as root via su
David S. Goldberg
dsg@mitre.org
Thu, 18 Mar 2010 14:42:31 -0400
> I created a file ~/.ssh/rc as per your suggestion in the machine that I am
> logging into ("aerogold" in this case). Logging in gives me this:
> [matlis@quadzilla ~]$ ssh -Y ematlis@aerogold
> ematlis@aerogold's password:
> Last login: Thu Mar 18 14:24:37 2010 from quadzilla.aero.nd.edu
> X11 connection rejected because of wrong authentication.
> xauth: creating new authority file /tmp/.ematlis/.Xauthority
> xauth: creating new authority file /tmp/.ematlis/.Xauthority
> X11 connection rejected because of wrong authentication.
> xhost: unable to open display "localhost:10.0"
> [ematlis@aerogold ~]$ echo $XAUTHORITY
> XAUTHORITY: Undefined variable.
Sorry I pasted in the wrong version, from an older machine. Here's
what I have on my own Fedora 12 box after the lines creating the
directory in /tmp and setting XAUTHORITY:
if [ "$DISPLAY" = "" ]; then exit 0 ; fi
if read proto cookie && [ -n "$DISPLAY" ]; then
if [ `echo $DISPLAY | cut -c1-10` = 'localhost:' ]; then
# X11UseLocalhost=yes
echo add unix:`echo $DISPLAY | cut -c11-` $proto $cookie
else
# X11UseLocalhost=no
echo add $DISPLAY $proto $cookie
fi | xauth -q -
fi
--
Dave Goldberg
Associate Department Head, G06A: Advanced Technical Computing Center
The MITRE Corporation \ MS K331 \ 202 Burlington Rd. \ Bedford, MA 01730
dsg@mitre.org \ 781-271-3887 (W) \ 781-439-7875 (M)