Operating System - HP-UX
1834872 Members
2235 Online
110070 Solutions
New Discussion

EASY ENVIRONMENT QUESTION

 
SOLVED
Go to solution
Pat Copland
Occasional Advisor

EASY ENVIRONMENT QUESTION

Where do I go to set up global and user specific environment variables (PATH).
How do I set up a good global path for everyone and "add" to it in specific user
and group environment variable statements.
2 REPLIES 2
Kofi ARTHIABAH
Honored Contributor

Re: EASY ENVIRONMENT QUESTION

easy answer :-)

/etc/PATH for global
~/.profile for user based.

nothing wrong with me that a few lines of code cannot fix!
Stefan Farrelly
Honored Contributor
Solution

Re: EASY ENVIRONMENT QUESTION


/etc/PATH (and /etc/MANPATH) already have good default paths set in them for everyone. If you need to change this globally then this is the file. For local users their .profile or shell .rc file (eg .kshrc) file or even their .login file is where you add to their PATH variable (set from /etc/PATH at login) by doing; PATH=$PATH:
Im from Palmerston North, New Zealand, but somehow ended up in London...