Problem Setting $PATH

I am trying to install the pkg-get package to a fresh install of Solaris 10. I am able to download and install correctly using the default directory for both pkg-get and wget as found on blastwave.org. When I issue the command "which wget and which pkg-get" it returns no wget or pkg-get found in /usr/bin or /usr/sbin. In order to try to correct this I tried to add pkg-get and wget to my path using /etc/default/login and /etc/default/su. I added the following #SUPATH=/usr/sbin:/usr/bin:opt/csw/bin:/usr/sfw/bin thinking I should be able excute the program from any directory. When I echo $PATH it still does not show opt/csw/bin:/usr/sfw/bin in my path.

I have not restarted the box and am working as root for all changes.

Thanks for any input.

In root's .profile, just add this:

PATH=$PATH:/opt/csw/bin:/usr/sfw/bin

And in the file where you have added this, have you removed the '#' from in front of the SUPATH? Otherwise the line would be ignored as a comment and the setting would never take effect.