.profile is for sh/.login is for csh
Machine wide setting can be done by editing /etc/profile
# The profile that all logins get before using their own .profile.
For root, like for all sh-ish user, the login shell will read /etc/profile then the .profile in the user home directory, i.e. for root normaly /
Cheers
Can you more specific.
If you don't see in your environnement, variables you added in /etc/profile :
1) You have to source /etc/profile after changes, either by logging again or typing ". /etc/profile" at the shell prompt.
2) You need to export the variable like this :
MY_VAR=my_value
export MY_VAR
3) If you're modifiying variable that yet exists, if you want to preserve previous value, use the following synthax:
PATH=$PATH:/new_path/entry ; export PATH
Hope that helps