Unix Technical Forum

Default PATH

This is a discussion on Default PATH within the AIX Operating System forums, part of the Unix Operating Systems category; --> On our AIX 5.1 systems we are unable to have the /etc/profile or /etc/environment PATH statements take. The individual ...


Go Back   Unix Technical Forum > Unix Operating Systems > AIX Operating System

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-04-2008, 09:04 PM
chuckd35@msn.com
 
Posts: n/a
Default Default PATH

On our AIX 5.1 systems we are unable to have the /etc/profile or
/etc/environment PATH statements take. The individual users
$HOME/.profile overrides any PATH statements in /etc/profile or
/etc/environment. Has anyone seen this problem, or know the solution?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-04-2008, 09:04 PM
Todd H.
 
Posts: n/a
Default Re: Default PATH

chuckd35@msn.com writes:

> On our AIX 5.1 systems we are unable to have the /etc/profile or
> /etc/environment PATH statements take. The individual users
> $HOME/.profile overrides any PATH statements in /etc/profile or
> /etc/environment.


Yes, that's the way UNIX is designed. The local customization trumps
the system wide one.

> Has anyone seen this problem, or know the solution?


Users shouldn't be setting PATH in an absolute fashion.

Instruct users that their setting of an absolute PATH breaks things
and that their .profile should only append to the existin PATH
statement, eg

good:
PATH=$PATH:$HOME/bin
export PATH

versus the bad:
PATH=/usr/local/bin:/bin:/usr/bin:$HOME/bin
export PATH


Best Regards,
--
Todd H.
http://www.toddh.net/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-04-2008, 09:05 PM
Rich
 
Posts: n/a
Default Re: Default PATH


<chuckd35@msn.com> wrote in message
news:39ab5d89.0309091222.76e14668@posting.google.c om...
> On our AIX 5.1 systems we are unable to have the /etc/profile or
> /etc/environment PATH statements take. The individual users
> $HOME/.profile overrides any PATH statements in /etc/profile or
> /etc/environment. Has anyone seen this problem, or know the solution?



The shell will by default take the path form /etc/profiles and
/etc/environments. A users setting in their home directory with override.
What you must do is append the path. ie in the the $HOME/.profile is
should say

export PATH=$PATH:/usr/local/bin

where the usr/local/bin is whatever you want to add do the path set in
/etc/environment


Hope this helps

Rich


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 04:52 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com