Answer: ~/.bashrc Had same problem myself. In Solaris 10 /etc/profile is honoured first, then ~/.profile, but other shells e.g. csh have other files that override PATH.
In OpenSolaris, bash is the default shell and PATH is now set in /etc/bash/bashrc (global), then overridden for user in ~/.bashrc . I guess other shells use different files. Maybe OpenSolaris is phasing out /etc/profile and ~/.profile. Oh it's such a PITA for someone coming to UNIX, and then to OpenSolaris from Solaris 8/9/10. I think given that /etc/profile is so well known, there should be footnote after the "export LOGNAME PATH" explaining where the PATH variables are set (e.g. sh uses this, bash uses that, csh uses this, Ksh uses that. AND..... A nice table with all the info about where PATH is set should be published somewhere on the web that's easy to search for. For anyone concerned, X11 and GDM scripts do interfere with a users PATH. -- This message posted from opensolaris.org
