Re: /etc/environment
Peter Iannarelli <Peter.Iannarelli@GenXl.com> writes:
> Assuming all your users are using bash,
> put your global environmental setting in
> /etc/profile
>
> Marco Maggesi wrote:
>
> > I am looking for the appropriate place where to put some
> > basic environmental definition like:
> >
> > PAGER=less
> >
> > so that they take effect to every user (unless explicitly
> > overwritten) WHATEVER LOGIN SHELL they use. is that
> > possible?
> >
> > I saw a file /etc/environment
> > who reads it ?
And if they're not using bash, but a CSH, or variant, then also put it
in /etc/cshrc, e.g.,
setenv PAGER less
Adding it in both /etc/profile and /etc/cshrc should set it for any
user on your system.
Gary
Reply to: