*BSD News Article 93144


Return to BSD News archive

Newsgroups: comp.unix.bsd.freebsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!lucy.swin.edu.au!news.rmit.EDU.AU!izvestia.its.unimelb.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!newsfeed.direct.ca!su-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!news.maxwell.syr.edu!news.apfel.de!univ-lyon1.fr!pasteur.fr!jussieu.fr!fdn.fr!r2d2.fdn.org!sphynx.fdn.fr!causse
From: causse@sphynx.fdn.fr (Philippe Causse)
Subject: Re: New to FreeBSD -- where do I set global environment vars?
X-Newsreader: TIN [version 1.2 PL2]
Organization: individual - paris - france
Message-ID: <E8ABDs.1pn@sphynx.fdn.fr>
References: <5ib8ud$pge$1@news.depaul.edu>
Date: Mon, 7 Apr 1997 20:25:04 GMT
Lines: 28
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38707

Jim Leonard (root@boxotrix.it-ias.depaul.edu) wrote:
: I love FreeBSD 2.2.1 -- I've completely converted over to it.  I'm
: having a problem, however:  I want to set the environment variable
: TMPDIR set to a value, and have it show up for everything on the system.
: In previous unix's, all I had to do was set something in /etc/login or
: /etc/profile, but I don't see those listed here.  I've put it in
: /etc/rc.local, but it doesn't stick.  I log in, and TMPDIR is still
: unset.  (I added "TMPDIR=/usr/tmp; export TMPDIR" to rc.local)

: What am I missing?  Where do I set this?

You should have /etc/profile contain settings for /bin/sh users
and /etc/csh.login and /etc/csh.cshrc for /bin/csh users.

That does the job on my system ;-)

Good luck,
Phil.

: -- 
: Jim Leonard, SysAdmin at DePaul University and demofreak
: work: jleonard@condor.depaul.edu
: home: trixter@mcs.com
: For a new experience, try http://www.cdrom.com/pub/demos/hornet/html/demos.html
-- 
-------------------------------------------------------------------
P. Causse			http://www.fdn.fr/~pcausse
4.4BSD/X11R6/Motif-2.0/C++	mailto:causse@sphynx.fdn.fr (UUCP)