LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 01-05-2006, 04:28 PM   #1
kaplan71
Member
 
Registered: Nov 2003
Posts: 809

Rep: Reputation: 39
Modifying system-wide search path


Is there a particular file where the search path can be modified and thus affect all users? If not, assuming the users are using the bash shell, what would the correct syntax be to modify the individual user's search path?
 
Old 01-05-2006, 08:26 PM   #2
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
What do you mean by search path... do you mean the path environment variable or something else?

if you mean the path env var, in bash the syntax is:

export PATH=${PATH}:new_path:other_new_path

I'm not on my Linux machine now, so I can't say for sure, but you may have some sort of /etc/profile file that contains the initial user settings... the stuff that's executed before .bashrc. Otherwise, just put the above command in each user's .bashrc.

Last edited by BrianK; 01-05-2006 at 08:27 PM.
 
Old 01-05-2006, 08:38 PM   #3
Gsidious
Member
 
Registered: Nov 2005
Location: Oregon
Distribution: Ubuntu
Posts: 64

Rep: Reputation: 17
You can create a "/etc/profile.local" script which updates/modifies the $PATH variable and it will be sourced by /etc/profile on login. This should affect all user logins, (assuming they are using bash as the shell).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to modify the system-wide PATH jayhel Slackware - Installation 8 04-22-2005 03:00 AM
Modifying the PATH environment variable brunnopessoa Linux - Newbie 11 11-03-2004 10:23 PM
How to Chnage Python's module search path (sys.path)? lramos85 Linux - Software 1 05-02-2004 06:10 PM
Modifying system-wide include path in Fedora Ross Clement Fedora 0 02-21-2004 03:14 AM
modifying $PATH in bashrc gargamel237 Linux - Software 4 08-13-2003 12:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration