Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Mar 2004 22:40:45 -0500
From:      Garance A Drosihn <drosih@rpi.edu>
To:        Robey Holderith <robey@alltel.net>, freebsd-questions@freebsd.org
Subject:   Re: redirecting /tmp
Message-ID:  <p060204c2bc6da67a34d2@[128.113.24.47]>
In-Reply-To: <4047E7E0.7050405@alltel.net>
References:  <4047E7E0.7050405@alltel.net>

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



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