Lars Hansson wrote:
On 8/9/07, Clint Pachl <[EMAIL PROTECTED]> 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.
Exactly, however, /etc/profile is only sourced during shell logins,
hence my script snippet.
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.
Uhm, why? This is exactly why I gave the advice I did. Just do what I
said and you won't have to worry about whether your using a login shell
or a non-login shell from an xterm, etc.
Even if you source /etc/profile in Xsession, any new shell you invoke in
an xterm, mrxvt, rxvt, etc. will not source /etc/profile, unless it is
invoked as a login shell.
-pachl