• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 292
  • Last Modified:

Linux, PATH, etc

I want to permanently change the PATH, LD_LIBRARY_PATH, etc

What file contains the PATH and LD_LIBRARY_PATH such that these will be set system wide upon boot up ?

Thanks
0
Los Angeles1
Asked:
Los Angeles1
3 Solutions
 
woolmilkporcCommented:
Should be in /etc/profile (or in scripts residing in the directory /etc/profile.d/, if present) or perhaps in /etc/environment (preferred if supported),  depending on the OS in use.
0
 
Pepe2323Commented:
Hi

if you want all users have those Variables defined by default, then yes modify /etc/profile as woolmilkporc says; if it's only for a few or a single user (s), then you have to define it on profile of that user.

for BASH shell it is on the home directory of that user add those variables on .bash_profile, some other shells use .profile

Regards.
0
 
madunixChief Information Security Officer Commented:
LD_LIBRARY_PATH should be used only temporarly or during development process, and never be set globally, instead you could use ldconfig.
http://www.cyberciti.biz/tips/linux-shared-library-management.html
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now