[OpenAFS] Token loss after su on linux 2.6

Bob Hoffman hoffman@cs.pitt.edu
Wed, 16 Aug 2006 12:35:39 -0400


I'm having the following problem on our Red Hat Enterprise 4 systems 
using the 2.6 kernel --
after exiting from a 'su' session, my token is gone.  This did not occur 
under the 2.4 kernel.

Some examples:

1. Red Hat Enterprise 3 -- the token acquired at login is retained 
through the su session
and still exists after returning from that session.


cachaca:1 % uname -a
Linux cachaca.cs.pitt.edu 2.4.21-20.EL #1 Wed Aug 18 20:58:25 EDT 2004 
i686 i686 i386 GNU/Linux
cachaca:2 % cat /etc/redhat-release
Red Hat Enterprise Linux WS release 3 (Taroon Update 3)
cachaca:3 % strings /usr/vice/etc/afsd |grep OpenAFS
@(#) OpenAFS 1.4.1 built  2006-04-19
cachaca:4 % tokens

Tokens held by the Cache Manager:

User's (AFS ID 46) tokens for afs@cs.pitt.edu [Expires Aug 17 13:54]
   --End of list--
cachaca:5 % su
Password:
Setting erase to ^?
cachaca:1 # tokens

Tokens held by the Cache Manager:

User's (AFS ID 46) tokens for afs@cs.pitt.edu [Expires Aug 17 13:54]
   --End of list--
cachaca:2 # exit
exit
cachaca:6 % tokens

Tokens held by the Cache Manager:

User's (AFS ID 46) tokens for afs@cs.pitt.edu [Expires Aug 17 13:54]
   --End of list--




2.  Red Hat Enterprise 4.  The token acquired at login is retained in 
the su session but is discarded upon leaving that session.

arsenic:1 % uname -a
Linux arsenic.cs.pitt.edu 2.6.9-34.0.2.ELsmp #1 SMP Fri Jun 30 10:33:58 
EDT 2006 i686 i686 i386 GNU/Linux
arsenic:2 % cat /etc/redhat-release
Red Hat Enterprise Linux WS release 4 (Nahant Update 3)
arsenic:3 % strings /usr/vice/etc/afsd |grep OpenAFS
@(#) OpenAFS 1.4.1 built  2006-04-19
arsenic:4 % tokens

Tokens held by the Cache Manager:

User's (AFS ID 46) tokens for afs@cs.pitt.edu [Expires Aug 17 13:57]
   --End of list--
arsenic:5 % su
Password:
Setting erase to ^?
arsenic:1 # tokens

Tokens held by the Cache Manager:

User's (AFS ID 46) tokens for afs@cs.pitt.edu [Expires Aug 17 13:57]
   --End of list--
arsenic:2 # exit
exit
arsenic:6 % tokens

Tokens held by the Cache Manager:

   --End of list--



Has anyone else seen this?  Thanks in advance for any advice.

    ---Bob.