[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: global environment variables?



On 03-Dec 09:01, nemo@cheeky.house.cx wrote:
> On Sun, Dec 02, 2001 at 01:02:50PM -0800, Thomas Zimmerman wrote:
> > On 03-Dec 01:23, nemo@cheeky.house.cx wrote:
> > > This I aready know. ...but seeing as I didn't ask "how do I set an
> > > environment for my cronjobs" but "how do a set a GLOBAL evironment for
> > > the entire system", it doesn't actually help me much. :)
> > > 
> > > .../Nemo
> > > 
> > [snip other answer}
> > 
> > Just slip it in /etc/profile.
> > 
> 
> Correct me if I'm wrong - but this is only for Bourne shells and compatible. 
> It wont set the environment for my personal zsh shell? For perl modules?
> 
> All I want is to have *one* place to set this and then have it done with.
> NOT have to set it in half a dozen places for different parts of the system,
> and have the concern that sometime down the track that a new system component
> will need to know about that environment, but wont know about it because it's
> not been manually set. 
> 
> I would have thought this was a somewhat common need?

And I was under the impression that is what /etc/profile is for. Every shell
should source /etc/profile. Bash also sources /etc/bashrc and if a user,
~/.bashrc and ~/.profile. Am I completely wrong here? This seems to be a
sane setup. 

Werther cron should source /etc/profile, I leave to the secure minded.

Thomas

Attachment: pgpnW5b46Z5SM.pgp
Description: PGP signature


Reply to: