Dynamic symlink?
Dan Nelson
dnelson at allantgroup.com
Mon Oct 10 11:40:00 PDT 2005
In the last episode (Oct 10), Brian Candler said:
> Are there any clever tricks you can do such that a filesystem access
> to /tmp is transparently redirected to /home/<user>/tmp ?
>
> (Reason: Web server cluster. Many scripts expect to be able to store
> session data in /tmp. Don't want to have a free-for-all NFS mount for
> /tmp)
>
> Something which looks like a symlink with a dynamic target depending
> on the uid of the person who reads it is the sort of thing I'm
> looking for.
You could probably use amd's hlfsd to do this, or make sure that
$TMPDIR is set correctly before launching the script, and force
everyone to use $TMPDIR instead of hardcoding /tmp in their scripts.
--
Dan Nelson
dnelson at allantgroup.com
More information about the freebsd-questions
mailing list