For setting the PATH, if you want the PATH to apply to all users, set it in /etc/profile. If you just want the PATH to apply to a single user, set it in the user's .bash_profile
If your "export" example is what you entered in /etc/profile, try not using the double quotes around the value and not adding a semi-colon to the end. I just entered the following line to my /etc/profile:
export TOOBY=jones
When I logged out and logged back in, the echo $TOOBY command returned jones.
If you were to do the export from the command line, then the value would disappear when you logged out or rebooted. Since you're putting it in /etc/profile, it should be permanent since /etc/profile is read whenever anyone logs in.
HTH
j.
Last edited by jpweston; 09-20-2002 at 12:36 PM.
|