Red Hat Topics - Where is system wide $PATH set?

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Topics > October 2004 > Where is system wide $PATH set?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Where is system wide $PATH set?
Mark Healey

2004-10-06, 2:45 am

I just instlled nethack and it went into a directory that isn't in the
path. Instead of changing the .bash_profile for every user I'd like
to add it to the $PATH that has $HOME/bin attached to in in
..bash_profile.

TIA

--
Mark Heaely
marknews(at)healeyonline(dot)com
Sverre Larsson

2004-10-06, 2:45 am

Mark Healey wrote:
> I just instlled nethack and it went into a directory that isn't in the
> path. Instead of changing the .bash_profile for every user I'd like
> to add it to the $PATH that has $HOME/bin attached to in in
> bash_profile.
>
> TIA
>
> --
> Mark Heaely
> marknews(at)healeyonline(dot)com


Have a look in /etc/profile.d - a directory of "scripts" that sets
enviroment.
Paul Lutus

2004-10-06, 2:45 am

Mark Healey wrote:

> I just instlled nethack and it went into a directory that isn't in the
> path. Instead of changing the .bash_profile for every user I'd like
> to add it to the $PATH that has $HOME/bin attached to in in
> bash_profile.


Do not use that method. Instead, make a symlink to your application
in /usr/local/bin for each application that you want to share with users.
This method is much more trouble-free than editing global search paths, and
it is why there is a /usr/local/bin directory.

In fact, compared to making symlinks to a directory that is already in the
path, adding new directories to everyone's path will only slow the entire
system down.

--
Paul Lutus
http://www.arachnoid.com

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com