From owner-freebsd-questions@FreeBSD.ORG Thu Mar 4 19:56:22 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 2A28016A4CE for ; Thu, 4 Mar 2004 19:56:22 -0800 (PST) Received: from mta02-srv.alltel.net (mta02.alltel.net [166.102.165.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9449243D39 for ; Thu, 4 Mar 2004 19:56:21 -0800 (PST) (envelope-from robey@alltel.net) Received: from alltel.net ([162.40.47.122]) by mta02-srv.alltel.net with ESMTP id <20040305035620.BSSA19144.mta02-srv.alltel.net@alltel.net>; Thu, 4 Mar 2004 21:56:20 -0600 Message-ID: <4047FA64.7080401@alltel.net> Date: Thu, 04 Mar 2004 22:56:20 -0500 From: Robey Holderith User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031014 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Garance A Drosihn References: <4047E7E0.7050405@alltel.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: questions@freebsd.org 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:56:22 -0000 Garance A Drosihn wrote: > 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. > That's kinda what I figured. Ah well, the night is quickly disappearing so it looks like I might as well give up until tomorrow when something can be done. Thanks