On 30 November 2016 at 20:39, Russ Allbery <r...@debian.org> wrote: > Felipe Sateler <fsate...@debian.org> writes: >> On 30 November 2016 at 19:20, Michael Biebl <bi...@debian.org> wrote: >>> Am 30.11.2016 um 23:12 schrieb Russ Allbery: > >>>> Anyway, it certainly could be registered in -noninteractive (there was >>>> some reason why I didn't do that), but I think the Kerberos ticket >>>> cache problem will still be an issue. Is there some mechanism to >>>> convey the value of KRB5CCNAME from the user's login environment to >>>> systemd --user? > >>> systemctl --user set-environment >>> might be what you are looking for. > >> `systemctl --user import-environment KRB5CCNAME` might be more >> appropriate if this variable should be copied from an already existing >> environment. > > Apologies for my lack of knowledge of systemd in user mode -- it's really > neat but I haven't had a chance to play with it yet. Who would run this > command? Is it something that libpam-afs-session would run from a > postinst maintainer script, or is it something more complicated than that?
Well, this command imports an environment variable from the current environment into the systemd --user one. Therefore, it would need to be run after each time that environment variable is set... -- Saludos, Felipe Sateler