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

Re: /etc/environment

On Fri, Jun 11, 1999 at 02:11:58PM -0400, Ben Collins wrote:
> On Fri, Jun 11, 1999 at 08:11:58AM +0200, Michael Meskes wrote:
> > > (And even if you are the only user on your machine, you may not want
> > > to set LC_ALL for root.)
> > 
> > I never work as root. :-)
> > 
> > Anyway, there is one problem with your approach namely that it doesn't do
> > what I want. At least it didn't when I tried yome years ago. The problem is
> > that the locale initilisation in my shell is done before the environment
> > variable is set. So I have to have LC_ALL set before the shell starts.
> > That's what /etc/environment is for. 
> Read the libpam-docs concerning the pam_env module. You will need to add
> it to the /etc/pam.d/login file and then edit /etc/security/pam_anv to
> your liking.

Is there a way to use /etc/environment also on PAMified apps? It would be
nice to be able to define a default value for some variable (eg: LANG, as
our current installation system does) just by editing a single file, not
dozens of them...
Enrique Zanardi					   ezanardi@ull.es

Reply to: