[OpenAFS] token oddities under Linux

Marc Schmitt schmitt@inf.ethz.ch
Fri, 26 Jul 2002 11:07:50 +0200


Hi Tino,

Tino Schwarze wrote:
> Hi Marc,
> 
> On Fri, Jul 26, 2002 at 09:43:37AM +0200, Marc Schmitt wrote:
> 
> 
>>bash-2.05a$ unlog
>>bash-2.05a$ tokens
>>
>>Tokens held by the Cache Manager:
>>
>>    --End of list--
>>bash-2.05a$ id
>>uid=1049(schmitt) gid=99(nobody) 
>>groups=99(nobody),2000(ssw),14(uucp),10(wheel)
>>bash-2.05a$ klog -setpag mschmitt
>>Password:
>>bash-2.05a$ id
>>uid=1049(schmitt) gid=99(nobody) 
>>groups=99(nobody),2000(ssw),14(uucp),10(wheel)
> 
> 
> This should not happen.(TM) There should be two groups like 34395 and
> 37063 associated to your shell.
> 
> What do you get when you open a pagsh and issue id there? Try "rpm
> --verify openafs" and "which klog" too. Maybe it's an old klog (I
> seem to remember that the -setpag option was added sometime, but I might
> be wrong.)?

bash-2.05a$ uname -a
Linux respect-i 2.4.18-5 #1 Mon Jun 10 15:31:48 EDT 2002 i686 unknown
bash-2.05a$ rpm -q openafs
openafs-1.2.5-rh7.3.1
bash-2.05a$ rpm --verify openafs
..5....T   /etc/rc.d/init.d/afs
SM5....T c /etc/sysconfig/afs
bash-2.05a$ which klog
/usr/bin/klog
bash-2.05a$ rpm -qf /usr/bin/klog
openafs-1.2.5-rh7.3.1

What I changed in /etc/rc.d/init.d/afs is the chkconfig line, I want AFS 
to start before autofs.
My /etc/sysconfig/afs looks like this:

---- start /etc/sysconfig/afs
#! /bin/sh
# Copyright 2000, International Business Machines Corporation and others.
# All Rights Reserved.
#
# This software has been released under the terms of the IBM Public
# License.  For details, see the LICENSE file in the top-level source
# directory or online at http://www.openafs.org/dl/license10.html

# Configuration information for AFS client

# AFS_CLIENT and AFS_SERVER determine if we should start the client and or
# the bosserver. Possible values are on and off.
AFS_CLIENT=on
AFS_SERVER=off

# AFS client configuration options:
XXLARGE="-stat 4000 -dcache 4000 -daemons 6 -volumes 256 -files 50000"
XLARGE="-stat 3600 -dcache 3600 -daemons 5 -volumes 196 -files 50000"
LARGE="-stat 2800 -dcache 2400 -daemons 5 -volumes 128"
MEDIUM="-stat 2000 -dcache 800 -daemons 3 -volumes 70"
SMALL="-stat 300 -dcache 100 -daemons 2 -volumes 50"

# cachesize and according options are set by /afs/rc.d/init.d/afs
#   * if you set CACHESIZE to "AUTOMATIC", it will automatically be chosen
#     deduced by parition sizes (does not work if your cache is on / or 
/usr)
#   * if you set OPTIONS to "AUTOMATIC", the init script will choose a set
#     of options based on the cache size
# otherwise the values specified here will be used. So be careful!
# Note: if you leave these as-is, no changes are made.
CACHESIZE=
OPTIONS="-rootvol inf.root.afs $LARGE"

# you should never need to change these settings
AFSDIR=/afs
CACHEDIR=/usr/vice/cache
CACHEINFO=/usr/vice/etc/cacheinfo

# Set to "-verbose" for a lot of debugging information from afsd. Only
# useful for debugging as it prints _a lot_ of information.
VERBOSE=

# Sample server preferences function. Set server preferences using this.
# afs_serverprefs() {
#    /usr/afsws/etc/fs setserverprefs <host> <rank>
#}

# Either the name of an executable script or a set of commands go here.
# AFS_POST_INIT=afs_serverprefs
AFS_POST_INIT="/usr/bin/fs setcrypt on"
---- end /etc/sysconfig/afs

Concerning the pagsh:

bash-2.05a$ id
uid=1049(schmitt) gid=99(nobody) 
groups=99(nobody),2000(ssw),14(uucp),10(wheel)
bash-2.05a$ pagsh
sh-2.05a$ id
uid=1049(schmitt) gid=99(nobody) 
groups=33791,35120,99(nobody),2000(ssw),14(uucp),10(wheel)


Right, there I have the two groups you mention...


Greetz
      Marc