From owner-freebsd-questions@FreeBSD.ORG Mon Oct 10 18:40:00 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 060EE16A41F for ; Mon, 10 Oct 2005 18:40:00 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8772243D4C for ; Mon, 10 Oct 2005 18:39:59 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.3) id j9AIdwJ8056283; Mon, 10 Oct 2005 13:39:58 -0500 (CDT) (envelope-from dan) Date: Mon, 10 Oct 2005 13:39:58 -0500 From: Dan Nelson To: Brian Candler Message-ID: <20051010183958.GH44754@dan.emsphone.com> References: <20051010182035.GA693@uk.tiscali.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051010182035.GA693@uk.tiscali.com> X-OS: FreeBSD 5.4-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: Dynamic symlink? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 18:40:00 -0000 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//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