<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/4.6.6">
</HEAD>
<BODY TEXT="#000000" BGCOLOR="#ffffff">
On Wed, 2013-09-11 at 21:34 -0400, Dmitri Pal wrote:<BR>
<BLOCKQUOTE TYPE=CITE>
    On 09/11/2013 09:27 PM, Dean Hunter wrote: <BR>
    <BLOCKQUOTE TYPE=CITE>
        On Wed, 2013-09-11 at 21:10 -0400, Dmitri Pal wrote:<BR>
        <BLOCKQUOTE TYPE=CITE>
            On 09/11/2013 08:49 PM, Dean Hunter wrote: <BR>
            <BLOCKQUOTE TYPE=CITE>
                On Wed, 2013-09-11 at 11:49 -0400, Simo Sorce wrote: 
                <BLOCKQUOTE TYPE=CITE>
<PRE>
On Wed, 2013-09-11 at 10:39 -0500, Dean Hunter wrote:
<FONT COLOR="#737373">> On Wed, 2013-09-11 at 11:20 -0400, Simo Sorce wrote: </FONT>
<FONT COLOR="#737373">> > On Wed, 2013-09-11 at 08:39 -0500, Dean Hunter wrote:</FONT>
<FONT COLOR="#737373">> > </FONT>
<FONT COLOR="#737373">> > > I do NOT believe this:</FONT>
<FONT COLOR="#737373">> > >         [dean@ipa2 ~]$ ssh dean@desktop2</FONT>
<FONT COLOR="#737373">> > >         Last login: Wed Sep 11 08:32:21 2013 from ipa2.hunter.org</FONT>
<FONT COLOR="#737373">> > >         Could not chdir to home directory /home/net/dean: Permission</FONT>
<FONT COLOR="#737373">> > >         denied</FONT>
<FONT COLOR="#737373">> > >         -bash: /home/net/dean/.bash_profile: Permission denied</FONT>
<FONT COLOR="#737373">> > >         </FONT>
<FONT COLOR="#737373">> > >         -bash-4.2$ logout</FONT>
<FONT COLOR="#737373">> > >         -bash: /home/net/dean/.bash_logout: Permission denied</FONT>
<FONT COLOR="#737373">> > >         Connection to desktop2 closed.</FONT>
<FONT COLOR="#737373">> > >         </FONT>
<FONT COLOR="#737373">> > >         [dean@ipa2 ~]$ su -</FONT>
<FONT COLOR="#737373">> > >         Password: </FONT>
<FONT COLOR="#737373">> > >         </FONT>
<FONT COLOR="#737373">> > >         [root@ipa2 ~]# ssh dean@desktop2</FONT>
<FONT COLOR="#737373">> > >         dean@desktop2's password: </FONT>
<FONT COLOR="#737373">> > >         Last login: Wed Sep 11 08:34:29 2013 from ipa2.hunter.org</FONT>
<FONT COLOR="#737373">> > >         </FONT>
<FONT COLOR="#737373">> > >         [dean@desktop2 ~]$ logout</FONT>
<FONT COLOR="#737373">> > >         Connection to desktop2 closed.</FONT>
<FONT COLOR="#737373">> > >         </FONT>
<FONT COLOR="#737373">> > >         [root@ipa2 ~]# logout</FONT>
<FONT COLOR="#737373">> > >         </FONT>
<FONT COLOR="#737373">> > >         [dean@ipa2 ~]$ ssh dean@desktop2</FONT>
<FONT COLOR="#737373">> > >         Last login: Wed Sep 11 08:35:16 2013 from ipa2.hunter.org</FONT>
<FONT COLOR="#737373">> > >         </FONT>
<FONT COLOR="#737373">> > >         [dean@desktop2 ~]$ </FONT>
<FONT COLOR="#737373">> > > </FONT>
<FONT COLOR="#737373">> > </FONT>
<FONT COLOR="#737373">> > Are you using a kerberized NFS mount ?</FONT>
<FONT COLOR="#737373">> > </FONT>
<FONT COLOR="#737373">> > I think what is happening is that when going via SSH rpc.gssd cannot</FONT>
<FONT COLOR="#737373">> > find your ticket, ssh may be doing something "wrong" in this case.</FONT>
<FONT COLOR="#737373">> > </FONT>
<FONT COLOR="#737373">> > Simo.</FONT>
<FONT COLOR="#737373">> > </FONT>
<FONT COLOR="#737373">> Yes, I am using Kerberos with NFS.</FONT>
<FONT COLOR="#737373">> </FONT>
<FONT COLOR="#737373">> Should I report this as a bug?</FONT>
<FONT COLOR="#737373">> </FONT>
We need to decide what component is faulty. It may be possible we can
get it working somehow.

When you ssh in what is the ccache ssh assign you ?
can you run klist and post the output (sanitize it if needed) ?

Simo.

</PRE>
                </BLOCKQUOTE>
                I hope this is what you requested:<BR>
                <BLOCKQUOTE>
                    <TT><FONT SIZE="2">[<A HREF="mailto:dean@ipa2">dean@ipa2</A> ~]$ klist</FONT></TT><BR>
                    <TT><FONT SIZE="2">Ticket cache: DIR::/run/user/1387400001/krb5cc/tktFDDxRR</FONT></TT><BR>
                    <TT><FONT SIZE="2">Default principal: <A HREF="mailto:dean@HUNTER.ORG">dean@HUNTER.ORG</A></FONT></TT><BR>
                    <BR>
                    <TT><FONT SIZE="2">Valid starting     Expires            Service principal</FONT></TT><BR>
                    <TT><FONT SIZE="2">09/11/13 19:43:28  09/12/13 19:43:28  krbtgt/<A HREF="mailto:HUNTER.ORG@HUNTER.ORG">HUNTER.ORG@HUNTER.ORG</A></FONT></TT><BR>
                    <BR>
                    <TT><FONT SIZE="2">[<A HREF="mailto:dean@ipa2">dean@ipa2</A> ~]$ ssh <A HREF="mailto:dean@desktop2">dean@desktop2</A></FONT></TT><BR>
                    <TT><FONT SIZE="2">Last login: Wed Sep 11 19:41:48 2013 from ipa2.hunter.org</FONT></TT><BR>
                    <TT><FONT SIZE="2">Could not chdir to home directory /home/net/dean: Permission denied</FONT></TT><BR>
                    <TT><FONT SIZE="2">-bash: /home/net/dean/.bash_profile: Permission denied</FONT></TT><BR>
                    <BR>
                    <TT><FONT SIZE="2">-bash-4.2$ hostname</FONT></TT><BR>
                    <TT><FONT SIZE="2">desktop2.hunter.org</FONT></TT><BR>
                    <BR>
                    <TT><FONT SIZE="2">-bash-4.2$ klist</FONT></TT><BR>
                    <TT><FONT SIZE="2">klist: No credentials cache found (ticket cache <A HREF="FILE:/tmp/krb5cc_1387400001">FILE:/tmp/krb5cc_1387400001</A>)</FONT></TT><BR>
                    <BR>
                    <TT><FONT SIZE="2">-bash-4.2$ logout</FONT></TT><BR>
                    <TT><FONT SIZE="2">-bash: /home/net/dean/.bash_logout: Permission denied</FONT></TT><BR>
                    <TT><FONT SIZE="2">Connection to desktop2 closed.</FONT></TT><BR>
                    <BR>
                    <TT><FONT SIZE="2">[<A HREF="mailto:dean@ipa2">dean@ipa2</A> ~]$ klist</FONT></TT><BR>
                    <TT><FONT SIZE="2">Ticket cache: DIR::/run/user/1387400001/krb5cc/tktFDDxRR</FONT></TT><BR>
                    <TT><FONT SIZE="2">Default principal: <A HREF="mailto:dean@HUNTER.ORG">dean@HUNTER.ORG</A></FONT></TT><BR>
                    <BR>
                    <TT><FONT SIZE="2">Valid starting     Expires            Service principal</FONT></TT><BR>
                    <TT><FONT SIZE="2">09/11/13 19:43:28  09/12/13 19:43:28  krbtgt/<A HREF="mailto:HUNTER.ORG@HUNTER.ORG">HUNTER.ORG@HUNTER.ORG</A></FONT></TT><BR>
                    <TT><FONT SIZE="2">09/11/13 19:44:43  09/12/13 19:43:28  host/<A HREF="mailto:desktop2.hunter.org@HUNTER.ORG">desktop2.hunter.org@HUNTER.ORG</A></FONT></TT><BR>
                    <BR>
                    <TT><FONT SIZE="2">[<A HREF="mailto:dean@ipa2">dean@ipa2</A> ~]$ </FONT></TT><BR>
                    <BR>
                </BLOCKQUOTE>
                <BR>
                <BR>
<PRE>
_______________________________________________
Freeipa-users mailing list
<A HREF="mailto:Freeipa-users@redhat.com">Freeipa-users@redhat.com</A>
<A HREF="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/mailman/listinfo/freeipa-users</A>
</PRE>
            </BLOCKQUOTE>
            Do I get it right: you tried twice and the first time it did not work while the second it did?<BR>
            There might be a race condition mounting your home directory using your ticket.<BR>
            <BR>
<PRE>
-- 
Thank you,
Dmitri Pal

Sr. Engineering Manager for IdM portfolio
Red Hat Inc.


-------------------------------
Looking to carve out IT costs?
<A HREF="http://www.redhat.com/carveoutcosts/">www.redhat.com/carveoutcosts/</A>


_______________________________________________
Freeipa-users mailing list
<A HREF="mailto:Freeipa-users@redhat.com">Freeipa-users@redhat.com</A>
<A HREF="https://www.redhat.com/mailman/listinfo/freeipa-users">https://www.redhat.com/mailman/listinfo/freeipa-users</A>
</PRE>
        </BLOCKQUOTE>
        <BR>
        Starting clean after rebuilding ipa2 and desktop2 and a gdm login to ipa2 as dean, if I "ssh <A HREF="mailto:dean@desktop2">dean@desktop2</A>" it will consistently fail as noted in my last note.  However, if I: 
        <OL TYPE=1>
            <LI TYPE=1 VALUE=1>su - 
            <LI TYPE=1 VALUE=2>ssh <A HREF="mailto:dean@desktop2">dean@desktop2</A> 
            <LI TYPE=1 VALUE=3>logout of <A HREF="mailto:dean@desktop2">dean@desktop2</A> 
            <LI TYPE=1 VALUE=4>logout of <A HREF="mailto:root@ipa2">root@ipa2</A> 
        </OL>
        then "ssh dean@desktop2<A HREF="mailto:dean@desktop2">"</A> succeeds!<BR>
        <BR>
        Does that answer your question?  So I do not think there is a race.  It is more like the super user session leaves something behind that was missing?<BR>
    </BLOCKQUOTE>
    <BR>
    Does it succeed if after step 3 but before step 4 you do kdestoy?<BR>
    <BR>
    <BR>
<PRE>
-- 
Thank you,
Dmitri Pal

Sr. Engineering Manager for IdM portfolio
Red Hat Inc.


-------------------------------
Looking to carve out IT costs?
<A HREF="http://www.redhat.com/carveoutcosts/">www.redhat.com/carveoutcosts/</A>

</PRE>
</BLOCKQUOTE>
<BR>
Hah!  Even better, it works the first time and every time, if I start with a kdestroy:
<OL TYPE=1>
    <LI TYPE=1 VALUE=1>From Virtual Machine Manager open ipa2
    <LI TYPE=1 VALUE=2>Login as dean
    <LI TYPE=1 VALUE=3>Open a terminal
    <LI TYPE=1 VALUE=4>kdestroy
    <LI TYPE=1 VALUE=5>ssh <A HREF="mailto:dean@desktop2">dean@desktop2</A>
    <LI TYPE=1 VALUE=6>logout
    <LI TYPE=1 VALUE=7>ssh <A HREF="mailto:dean@desktop2">dean@desktop2</A>
    <LI TYPE=1 VALUE=8>logout
</OL>
Now, the fun starts.  Why do it do that?<BR>
<BR>
<BR>
</BODY>
</HTML>