Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Oct 2005 13:39:58 -0500
From:      Dan Nelson <dnelson@allantgroup.com>
To:        Brian Candler <B.Candler@pobox.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Dynamic symlink?
Message-ID:  <20051010183958.GH44754@dan.emsphone.com>
In-Reply-To: <20051010182035.GA693@uk.tiscali.com>
References:  <20051010182035.GA693@uk.tiscali.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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@allantgroup.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20051010183958.GH44754>