[OpenAFS] token oddities under Linux

Tino Schwarze tino.schwarze@informatik.tu-chemnitz.de
Thu, 25 Jul 2002 22:11:16 +0200


On Thu, Jul 25, 2002 at 06:48:28PM +0200, Marc Schmitt wrote:
> >>I ssh from C to A as foo and create a token for foo.
> >>I ssh from C to A as root and issue `su - foo`, `tokens` returns an 
> >>empty list.
> >>I ssh from C to B as foo and create a token for foo.
> >>I ssh from C to B as root and issue `su - foo`, `tokens` returns the 
> >>token of foo!
> >>
> >>
> >>Why is the behavior under Linux diffrent from SunOS? And isn`t the 
> >>behavior under Linux exactly NOT the way it should be?
> >>
> > 
> > How do you get tokens on B? It looks like there is no PAG being created
> > and therefore the token is associated to the UID as a last resort. Try
> > using klog -setpag and all should be well(TM).
> 
> I get tokens with /usr/bin/klog on Linux and /usr/afsws/bin/klog on 
> SunOS. I just tried `klog -setpag` on Linux, unfortunately it does not 
> change anything. I can still take over to user with su and get the token.

Are you sure that there wasn't a token left over from your other tries?
Try the following:

ssh to B
unlog
tokens
klog -setpag
tokens

And in second terminal:

ssh to B
tokens
su $user
tokens

What do you get?

Bye, Tino.

-- 
             * LINUX - Where do you want to be tomorrow? *
                  http://www.tu-chemnitz.de/linux/tag/