[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Woody - setting PATH



On  0, Crispin Wellington <crispin@aeonline.net> wrote:
> On Wed, 2002-07-10 at 11:20, Tom Cook wrote:
> > On  0, Crispin Wellington <crispin@aeonline.net> wrote:
> > [snip]
> > > > > 1) How should I add a path to PATH so it is available to all users
> > > > > system wide?
> > > > 
> > > > Add it to the PATH string in /etc/profile.
> > > > 
> > > > > 2) How should I add a path to PATH for only one user?
> > > > 
> > > > Add it to the PATH string in ~/.bash_profile.
> > > > 
> > > > Both of these should work.  If not, 'echo $PATH' to make sure that the
> > > > path is being set, then 'file /usr/local/j2re1.4.0_01/bin/java' to
> > > > make sure that the jvm is really there.
> > > 
> > > They both work a dream.
> > > 
> > > But why is there an entry for PATH in login.defs that does absolutely
> > > nothing?
> > 
> > Are you using shadow passwords?  My understanding is that login.defs
> > is only used when shadow passwords are used.
> 
> Yes. Of course. Other parts of login.defs work ok. Perhaps its the way
> woody's /etc/pam.d/login file is structured??

Well, on my system, /etc/profile has this line in it:

PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"

If this is processed after login.defs then it will replace the old
value.

Tom
-- 
Tom Cook
Information Technology Services, The University of Adelaide

Do not meddle in the affairs of dragons, for you are crunchy, and taste good with ketchup.

Get my GPG public key: https://pinky.its.adelaide.edu.au/~tkcook/tom.cook-at-adelaide.edu.au

Attachment: pgpCAtvXvdBwJ.pgp
Description: PGP signature


Reply to: