How does the PATH and MANPATH environment variable get set?

Hi,
How does the PATH and MANPATH environment variable get set?

I want to add "/opt/SUNWspro/bin" to the search path for all the users. Where can I access this variable.
I know in my home directory, depend on which shell I use, there are files such as .profile and .cshrc which I can edit to include the search PATH for myself.

If I want to add the search path for all the users on the system. Then how can I add it.
Thanks in advance,
Vu

altho setting stuff globally is not always good. I can only assume you know what your doing.

/etc/profile on solaris.

now you also much remember that the if the user redefines there path in there ~/.profile or what ever that they MUST include the orginal $PATH or your global changes dont do anything.

I tried this command before, not sure if this can helps to solve your problem.

path(path, getenv('/opt/SUNWspro/bin'))

/etc/profile for linux as well for all users

~user/.bash_profile and ~user/.bashrc

for invidvidual users