[ale] bash path problems
timothy@meanor.net
timothy
Thu Jul 19 15:50:54 EDT 2007
By default, login sets the path to /usr/local/bin:/bin:/usr/bin for normal users. See "man login" for details. To change this, go to /etc/security and edit pam_env. Add something like:
PATH DEFAULT=/bin:/usr/bin:/usr/local/bin:${HOME}:/bin
or however you want the default path to look.
-Tim
>>By default, login sets the path to /usr/local/bin:/bin:/usr/bin for normal
>>users. See "man login" for details. To change this, go to /etc/security and
>>edit pam_env. Add something like:
>>
>>PATH DEFAULT=/bin:/usr/bin:/usr/local/bin:${HOME}:/bin
>>
>>or however you want the default path to look.
>>
>>-Tim
>>
>>>>Sorry. I should have given more information that this is the
>>>>"easy" solution. I'm trying to find in /etc/bashrc and /etc/profile
>>>>where it adds /usr/local/bin to PATH. I can seem to find it.
>>>>I can post them if needed. BTW - this is a CentOS 4 box.
>>>>
>>>>Jeff
>>>>
>>>>> In other words...
>>>>>
>>>>> ~/.bashrc:
>>>>>
>>>>> PATH=/usr/bin:$PATH
>>>>> export $PATH
>>>>>
>>>>> On 7/19/07, Jeff Lightner <jlightner at water.com> wrote:
>>>>>
>>>>>> Are you saying you can't edit /etc/bashrc or /etc/profile? That would
>>>>>> seem to be the way to do it.
>>>>>>
>>>>>> Of course you can always override the default PATH from those files by
>>>>>> doing PATH=whatever at the command line or in your $HOME/.bashrc or
>>>>>> $HOME/.profile.
>>>>>>
>>>>>> Just don't do "PATH=$PATH:whatever" as that tells it to append whatever
>>>>>> to the END of the existing PATH meaning it will continue to use the one
>>>>>> from /etc/bashrc or profile.
>>>>>>
>>>>>> -----Original Message-----
>>>>>> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
>>>>>> Jeffrey B. Layton
>>>>>> Sent: Thursday, July 19, 2007 1:22 PM
>>>>>> To: ale at ale.org
>>>>>> Subject: [ale] bash path problems
>>>>>>
>>>>>> Afternoon,
>>>>>>
>>>>>> I hate to bother everyone, but I'm having bash path
>>>>>> problems. I want /usr/bin to be before /usr/local/bin,
>>>>>> but it's always the opposite. I even moved all of .bash*
>>>>>> files to a different directory and I still get /usr/local/bin
>>>>>> before /usr/bin. So it mush be in the system files
>>>>>> (/etc/bashrc, /etc/profile). Does anyone have any
>>>>>> suggestions on how to do this? It should be easy, but
>>>>>> I'm missing it.
>>>>>>
>>>>>> TIA!
>>>>>>
>>>>>> Jeff
>>>>>>
>>>>>> _______________________________________________
>>>>>> Ale mailing list
>>>>>> Ale at ale.org
>>>>>> http://www.ale.org/mailman/listinfo/ale
>>>>>> _______________________________________________
>>>>>> Ale mailing list
>>>>>> Ale at ale.org
>>>>>> http://www.ale.org/mailman/listinfo/ale
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>_______________________________________________
>>>>Ale mailing list
>>>>Ale at ale.org
>>>>http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list