From owner-freebsd-questions@FreeBSD.ORG Thu Mar 4 19:40:49 2004 Return-Path: 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 042C816A4CE for ; Thu, 4 Mar 2004 19:40:49 -0800 (PST) Received: from smtp2.server.rpi.edu (smtp2.server.rpi.edu [128.113.2.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5AB843D1F for ; Thu, 4 Mar 2004 19:40:48 -0800 (PST) (envelope-from drosih@rpi.edu) Received: from [128.113.24.47] (gilead.netel.rpi.edu [128.113.24.47]) by smtp2.server.rpi.edu (8.12.8/8.12.8) with ESMTP id i253eksA008795; Thu, 4 Mar 2004 22:40:46 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <4047E7E0.7050405@alltel.net> References: <4047E7E0.7050405@alltel.net> Date: Thu, 4 Mar 2004 22:40:45 -0500 To: Robey Holderith , freebsd-questions@freebsd.org From: Garance A Drosihn Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: CanIt (www . canit . ca) Subject: Re: redirecting /tmp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2004 03:40:49 -0000 At 9:37 PM -0500 3/4/04, Robey Holderith wrote: >I'm trying to find a way to set an environmental variable so >that the system will use /usr/tmp or something instead of /tmp >as a temporary directory. Some utilities will pay attention to the TMPDIR environment variable. >The story is that I was attempting to change the size of /usr >remotely. I backed up all the data and then copied the bare >necessities over to /tmp then changed fstab so the drive formerly >known as /usr was never mounted and /tmp was mounted as /usr. >Great! it worked... but now su isn't working... because >now /tmp is 755. However, things that run setuid or setgid will probably avoid looking at environment variables. You may have painted yourself into a corner here, and will need to be at the machine to log in as root. -- Garance Alistair Drosehn = gad@gilead.netel.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu