*BSD News Article 93181


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.mel.connect.com.au!news.syd.connect.com.au!phaedrus.kralizec.net.au!news.mel.aone.net.au!news.netspace.net.au!news.mira.net.au!pumpkin.pangea.ca!eru.mt.luth.se!newsfeed2.luth.se!news.luth.se!erix.ericsson.se!uab.ericsson.se!news.algonet.se!nntp.uio.no!newsfeed.nacamar.de!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news-peer.sprintlink.net!news-peer.sprintlink.net!news.sprintlink.n
et!sprint!howland.erols.net!rill.news.pipex.net!pipex!warm.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: New to FreeBSD -- where do I set global environment vars?
Date: 8 Apr 1997 09:17:50 GMT
Organization: Awfulhak Ltd.
Lines: 35
Message-ID: <5id2fu$8md@ui-gate.utell.co.uk>
References: <5ib8ud$pge$1@news.depaul.edu> <E8ABDs.1pn@sphynx.fdn.fr>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:38780

In article <E8ABDs.1pn@sphynx.fdn.fr>,
	causse@sphynx.fdn.fr (Philippe Causse) writes:
> 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 ;-)

Of course this doesn't do it for things like rshd.  If you want
them to know about it too, you'll need to export your vars at the
top of /etc/rc

> 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

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.demon.co.uk>
Don't _EVER_ lose your sense of humour !