I’ve been paying a lot of attention to this site since I switched platforms and somehow people are finding some fairly irrelevant content on my site for the search terms making path persistent in solaris 10 so I figured I better put some real answers up.
It is hard to know exactly what kind of path they had in mind- were they referring to the standard PATH variable which lists the directories in which to search for executables or were they referring to something more complicated?
You can make the executable search PATH variable persistent in several ways:
- On the system level you can set it in the /etc/profile file. It will affect all users except maybe root.
- On a per user level, or for the user root, you can set the PATH in the .profile file in the user’s home directory