« Return to Thread: howto set global environment variable (e.g. PATH, JAVA_HOME)

Re: howto set global environment variable (e.g. PATH, JAVA_HOME)

by Lars Hansson-5 :: Rate this Message:

| View in Thread

On 8/9/07, Clint Pachl <pachl@...> wrote:
> Or you could programatically change each user's .profile.

Uhm, why? Markus is correct that both /etc/profile and $HOME/.profile
are sourced when you log in so to set up global variables you set them
in /etc/profile.
If you're using xdm things are different though. The Xsession script
does not source any global files so you'll have to modify it to source
/etc/profile.

---
Lars Hansson

 « Return to Thread: howto set global environment variable (e.g. PATH, JAVA_HOME)