[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 290
  • 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

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