[OpenAFS] significant delay for afs user to login as root via su

ematlis@yahoo.com ematlis@yahoo.com
Thu, 18 Mar 2010 11:52:24 -0700 (PDT)

I'm sorry David, it's not clear to me what I should put in rc.  Can you sen=
d the entire contents?=0A=0Athanks,=0Aeric=0A=0A--- On Thu, 3/18/10, David =
S. Goldberg <dsg@mitre.org> wrote:=0A=0A> From: David S. Goldberg <dsg@mitr=
e.org>=0A> Subject: Re: [OpenAFS] significant delay for afs user to login a=
s root via su=0A> To: ematlis@yahoo.com=0A> Cc: "Ken Hornstein" <kenh@cmf.n=
rl.navy.mil>, openafs-info@openafs.org=0A> Date: Thursday, March 18, 2010, =
1:42 PM=0A> =0A> > I created a file ~/.ssh/rc as per your suggestion in=0A>=
 the machine that I am=0A> >=A0 logging into ("aerogold" in this case).=A0=
=0A> Logging in gives me this:=0A> =0A> > [matlis@quadzilla ~]$ ssh -Y emat=
lis@aerogold=0A> > ematlis@aerogold's password: =0A> > Last login: Thu Mar =
18 14:24:37 2010 from=0A> quadzilla.aero.nd.edu=0A> > X11 connection reject=
ed because of wrong=0A> authentication.=0A> > xauth:=A0 creating new author=
ity file=0A> /tmp/.ematlis/.Xauthority=0A> > xauth:=A0 creating new authori=
ty file=0A> /tmp/.ematlis/.Xauthority=0A> > X11 connection rejected because=
 of wrong=0A> authentication.=0A> > xhost:=A0 unable to open display "local=
host:10.0"=0A> > [ematlis@aerogold ~]$ echo $XAUTHORITY=0A> > XAUTHORITY: U=
ndefined variable.=0A> =0A> Sorry I pasted in the wrong version, from an ol=
der=0A> machine.=A0 Here's=0A> what I have on my own Fedora 12 box after th=
e lines=0A> creating the=0A> directory in /tmp and setting XAUTHORITY:=0A> =
=0A> if [ "$DISPLAY" =3D "" ]; then exit 0 ; fi=0A> if read proto cookie &&=
 [ -n "$DISPLAY" ]; then=0A> =A0=A0=A0 if [ `echo $DISPLAY | cut -c1-10` =
=3D=0A> 'localhost:' ]; then=0A> =A0=A0=A0 =A0=A0=A0 #=0A> X11UseLocalhost=
=3Dyes=0A> =A0=A0=A0 =A0=A0=A0 echo add unix:`echo=0A> $DISPLAY | cut -c11-=
` $proto $cookie=0A> =A0=A0=A0 else=0A> =A0=A0=A0 =A0=A0=A0 # X11UseLocalho=
st=3Dno=0A> =A0=A0=A0 =A0=A0=A0 echo add $DISPLAY=0A> $proto $cookie=0A> =
=A0=A0=A0 fi | xauth -q -=0A> fi=0A> =0A> =0A> -- =0A> Dave Goldberg=0A> As=
sociate Department Head, G06A: Advanced Technical=0A> Computing Center=0A> =
The MITRE Corporation \ MS K331 \ 202 Burlington Rd. \=0A> Bedford, MA 0173=
0=0A> dsg@mitre.org \=0A> 781-271-3887 (W) \ 781-439-7875 (M)=0A> =0A=0A=0A=