Re: Where to set XDG_CACHE_HOME?

Marek Greško <[email protected]> Mon, 23 Mar 2026 12:14:52 +0000
Newsgroups gmane.comp.kde.general
Message-ID <Y2hdi9blNvj0QJu81eZ0rUfI5ZyY5UYgieRzxTuIVOIOqBd-kT2fOs_psStCwEavQVRGa5EXyPRxVZ2QJ2T3kyzqC8gbLwziXcE2xo_itnM=@protonmail.com>
Hello,

NFS homedirs are mounted using autofs. I suppose it is on first access. If =
I would like to bind mount local dirs to home, it should be done per user a=
nd after the NFS is mounted. I see no feasible solution to perform this way=
.

Marek




Odoslan=C3=A9 pomocou bezpe=C4=8Dn=C3=A9ho emailu Proton Mail.

pondelok 23. marca 2026, 12:19, Ren=C3=A9 J.V. Bertin <[email protected]>=
 nap=C3=ADsal/a:

> Let's rewind for a second, and ask where and when those NFS homedirs are =
mounted. I suppose this is not done on-the-fly when users log in, that this=
 is so for a reason, and that the whole infrastructure is already designed =
such that new user homedirs are created with at least the basics in place f=
or them to work.
>=20
> That could include making the default XDG_CACHE_HOME location a symlink t=
o a path that will resolve locally on every system from which users can log=
 in.
>=20
> My other suggested solution, a "bind mount" could be done dynamically, an=
d since this needs to be done with privileges it might be easier to do from=
 a login manager, without running into race conditions. I just don't know i=
f doing a "mount bind" on host A will still allow the same action to take p=
lace on host B or C (supposing users can log in from multiple workstations)=
.
>