Thanks Bret.

Adding to the user's bash file would only affect the $PATH for that user
though... but as it's only really needed for root at the console presently
then this will do.  There must be some way of setting it globally I should
think.

Thanks

Mike

----- Original Message -----
From: "Bret Hughes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 09, 2002 4:38 PM
Subject: Re: RH 7.2 Path ?


> On Mon, 2002-12-09 at 05:23, Irvine Russell wrote:
> > Mike Stewart kirjoitti 09.12.2002 kello 11:58:
> > > Hi there, a simple question from a simple newbie.... how/where do I
> > >  set up
> > > the PATH ?  I need to add a folder to it.
> > >
> > > I looked in etc/profile but that seems to pick up the path from
> > >  somewhere
> > > else then add user's specific things to the original path ?
> >
> > Hei
> >
> > Didn't quite understand what you meant by:
> >    "somewhere else then add user's specific things to the original path"
> >
> > I took a look at /etc/profile and didn't quite understand what it was up
to.
> >
> > Anyway, if you want to set the path for a single user I would put it in
that
> > user's ~/.bashrc.
> >
> > Make sure that that user's ~/.bash_profile sources .bashrc - that is has
> > something like the following in it:
> >
> >     if [ -f ~/.bashrc ]; then
> >             . ~/.bashrc
> >     fi
> >
> > Not sure if this is the best solution, but it should work.
> >
>
> I think that the user's .bash_profile is actually where this was
> intended to be you should be able to add your path extension to the line
> already there.
>
> There is something about when bashrc gets called vs whe profile does but
> I forget and have never actually run into an issue with it.
>
> Bret
>
>
>
> --
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
>




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to