You are not logged in.

#1 2020-05-18 08:29:11

hexf
Member
Registered: 2020-05-18
Posts: 1

pam_mount/cifs local caching

Hi,

Im in the process of implementing a SSO system for my 3 Arch Linux based systems.
1 being my main desktop, another as a secondary desktop which gets relocated quite a bit, and finally a laptop.

These all authenticate against sssd and LDAP allowing for offline/online login. I also have a NAS which houses my profile, which gets mounted using pam_mount at login (connected over cifs).

My problem is when I'm out or have shaky wifi, the laptop won't have access to my NAS, meaning basically everything will break.
I am looking for a way to fix this, similar to how roaming profiles work in Windows (download profile at login, upload at logout) except while I am online I would like files to be updated live (I might be working with my laptop at my desktop to pull up pdfs/spreadsheets).

My idea for doing this would be to have my home directory mounted remotely, but some how keep a local copy of it so that in the event that the internet drops it would switch over to using this local copy and when a connection can be made, it will switch back and upload any changes. I don't expect there to be a lot of remote editing, mainly just the edit of the todo.txt

Any ideas on how I would implement this?

Offline

Board footer

Powered by FluxBB