On 8/8/07, Lars Hansson <[EMAIL PROTECTED]> 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.

~/.profile overrides /etc/profile.

$ echo 'var1=a' >> /etc/profile
$ echo 'var1=b' >> ~/.profile
$ /bin/ksh -l
$ echo $var1
b

In this case, users' dot files will have be updated.

DS

Reply via email to