# How to automatically set the path to a remote-user's local cached file

**URL:** <https://discourse.openondemand.org/t/how-to-automatically-set-the-path-to-a-remote-users-local-cached-file/3110>\
**Category:** Get Help\
**Created:** [November 21, 2023, 10:56am UTC](https://discourse.openondemand.org/t/how-to-automatically-set-the-path-to-a-remote-users-local-cached-file/3110 "2023-11-21T10:56:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![luissbucci](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/luissbucci/32/1986_2.png) [@luissbucci](https://discourse.openondemand.org/u/luissbucci)\
**Post date:** [November 21, 2023, 10:56am UTC](https://discourse.openondemand.org/t/how-to-automatically-set-the-path-to-a-remote-users-local-cached-file/3110/1 "2023-11-21T10:56:59Z")

</div>

Hi,  
I need to point to a local cached file, store this path in a ENV var to pass to the PUN.  
Which is the best way to pull the current remote-user and automatically populate the specific path to a local cached file?

Thanks,  
Luiss

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [November 21, 2023, 7:42pm UTC](https://discourse.openondemand.org/t/how-to-automatically-set-the-path-to-a-remote-users-local-cached-file/3110/2 "2023-11-21T19:42:09Z")

</div>

Hi and welcome! (I didn’t notice you were a first time user in the other topic).

Is this related to your Kerberos issue in another topic?

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [November 21, 2023, 8:20pm UTC](https://discourse.openondemand.org/t/how-to-automatically-set-the-path-to-a-remote-users-local-cached-file/3110/3 "2023-11-21T20:20:32Z")

</div>

I suspect I’ve answered your question in another topic:

> [@Open OnDemand and AFS](https://discourse.openondemand.org/t/open-ondemand-and-afs/3095):
>
> Wondering if anyone has integrated Open OnDemand with AFS. Trying to figure out authentication since I need a token to access the home directory.

---

<div class="post-metadata">

**Author:** ![luissbucci](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/luissbucci/32/1986_2.png) [@luissbucci](https://discourse.openondemand.org/u/luissbucci)\
**Post date:** [November 21, 2023, 8:25pm UTC](https://discourse.openondemand.org/t/how-to-automatically-set-the-path-to-a-remote-users-local-cached-file/3110/4 "2023-11-21T20:25:11Z")

</div>

YES. This is the same argument. It is related to Kerberos authentication for OpenAFS authorization. I can authenticate with Kerberos/GSSAPI and also access AFS HOME files. The problem is that I lose the link to the Kerberos ticket (stored in the cache file) after authentication.  
Thank you,  
Luiss

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [May 19, 2024, 8:25pm UTC](https://discourse.openondemand.org/t/how-to-automatically-set-the-path-to-a-remote-users-local-cached-file/3110/5 "2024-05-19T20:25:21Z")

</div>

Closed on May 19, 2024, 8:25pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
