[OpenAFS] openafs and screen command - loosing tokens

Russ Allbery rra@stanford.edu
Fri, 13 Feb 2009 09:20:38 -0800

Vladimir Konrad <v.konrad@lse.ac.uk> writes:

> I (+ my users) would like to run long running jobs under "screen"
> command, but currently the job looses access to afs after a user logs
> out.
> I tried running kinit + aklog within the "screen" session, but this
> makes no difference.
> Is there a way to open a screen command and get tokens specific to this
> session? I guess this is related to -setpag, but this is not reliable
> The platforms in question are:
> Debian Etch - on the servers, with AFS client version 1.4.7
> Debian Etch or Lenny on the desktops.

You may also want to suggest:

    krenew -t -- /path/to/long/running/job

This will make a copy of the current ticket cache, create a new PAG,
obtain new tokens, and then kick off the job, renewing tickets and
obtaining new tokens automatically until the job finishes or the tickets
can no longer be renewed.

You can get krenew from:


Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>