How to change system-wide search path?

How to change system-wide search path?

Post by Josh Yelo » Wed, 01 Jul 1998 04:00:00



On a redhat 5.1 system, the default PATH doesn't include
/usr/X11R6/bin.  I'm trying to add that directory, but I can't figure
out how.  I know I could edit /etc/profile and /etc/csh.cshrc and
/etc/zshrc and so forth for every shell on the system, but I'd rather
control it through a single central place.  According to a man page I
found on the web, I can set ENV_PATH in login.defs.  However, actual
experimentation shows that doing so has no effect.  Perhaps the man-page
I found is obsolete, there is no man-page for login.defs in redhat 5.1.
Does anybody know the truth about this matter?

- Josh

 
 
 

How to change system-wide search path?

Post by Robert Marti » Wed, 01 Jul 1998 04:00:00



> On a redhat 5.1 system, the default PATH doesn't include
> /usr/X11R6/bin.  I'm trying to add that directory, but I can't figure
> out how.  I know I could edit /etc/profile and /etc/csh.cshrc and
> /etc/zshrc and so forth for every shell on the system, but I'd rather
> control it through a single central place.  According to a man page I
> found on the web, I can set ENV_PATH in login.defs.  However, actual
> experimentation shows that doing so has no effect.  Perhaps the man-page
> I found is obsolete, there is no man-page for login.defs in redhat 5.1.
> Does anybody know the truth about this matter?

> - Josh

Have a look at /etc/rc.d/rc.sysinit
--
--Rob
I believe in UFOs (Unquestionably Fabulous Operating Systems)
I've seen Linux.
Remove SPAM and BANE from my email address before use.

 
 
 

How to change system-wide search path?

Post by Philip Hirschho » Sat, 04 Jul 1998 04:00:00


: >
: > On a redhat 5.1 system, the default PATH doesn't include
: > /usr/X11R6/bin.  I'm trying to add that directory, but I can't figure
: > out how.  I know I could edit /etc/profile and /etc/csh.cshrc and
: > /etc/zshrc and so forth for every shell on the system, but I'd rather
: > control it through a single central place.  According to a man page I
: > found on the web, I can set ENV_PATH in login.defs.  However, actual
: > experimentation shows that doing so has no effect.  Perhaps the man-page
: > I found is obsolete, there is no man-page for login.defs in redhat 5.1.
: > Does anybody know the truth about this matter?
: >
: > - Josh

: Have a look at /etc/rc.d/rc.sysinit

/etc/profile is used for everyone, no matter what shell you're using
(at least it is on my RedHat 4.2 system).  My /etc/profile sets the
path to /usr/X11R6/bin, and it is on my path; might you have
accidentally trashed the old path when adding new directories in your
.cshrc file or whatever?

Just a thought,
Phil

--
----------------------------------------------------------------------


----------------------------------------------------------------------

 
 
 

1. setting system wide linker search path

Could someone provide an example of using crle to append a dir to the
system-wide linker search path? I need to add /usr/local/lib to the
search
path but have not been able to get it to work across reboots and I don't
want to tell my users that they have to set LD_LIBRARY_PATH accordingly.

Thanks.

2. Cisco and socks5

3. System-wide paths (OS5) ??

4. PPP Dial up using ISDN on Flash.net

5. System-wide $PATH

6. how to compile nmh-1.0 in Red Hat 6.0?

7. system-wide PATH and MANPATH

8. Problem with touchpad driver

9. default system-wide $PATH setting

10. Change a particular group's GID on files system-wide

11. Setting path and environment variables system wide on solaris 8.0

12. System wide library path?

13. Newbie asks: HOW the HELL do I change my search PATH?