Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.wildstar.net!news.ececs.uc.edu!news.kei.com!news.mathworks.com!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news From: j@uriah.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: New to FreeBSD -- where do I set global environment vars? Date: 18 Apr 1997 19:43:47 GMT Organization: Private BSD site, Dresden Lines: 20 Message-ID: <5j8itj$5mt@uriah.heep.sax.de> References: <5ib8ud$pge$1@news.depaul.edu> <E8ABDs.1pn@sphynx.fdn.fr> <5id2fu$8md@ui-gate.utell.co.uk> Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) NNTP-Posting-Host: localhost.heep.sax.de Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Newsreader: knews 0.9.6 X-Phone: +49-351-2012 669 X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F 93 21 E0 7D F9 12 D6 4E Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39321 brian@shift.utell.net (Brian Somers) wrote: > 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 Nope. :) /etc/rc runs in its own process. Convert your users to [t]csh, and drop the variable assignments into /etc/csh.cshrc. :-) Or complain to Dave Korn that he totally ignored the method of a rc file for his shell, and instead invented something that could at best be considered a security hole, and at worst a sad joke: $ENV. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)