LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-13-2006, 04:25 PM   #1
moeen49
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Rep: Reputation: 0
How to add a environ. variable to all users?


Hi,

I want to add ORACLE_HOME variable to all userís who login into my oracle server box. What is the best way to do it?

I know that I can add a line to ~/.bash_profile, but I want to have that variables globally for everybody.

Thank you,
Alan
 
Old 07-13-2006, 04:36 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

Put it in /etc/profile, this makes it global for all users.

I do assume the users are using a bash shell.

Hope this helps.
 
Old 07-13-2006, 04:46 PM   #3
moeen49
LQ Newbie
 
Registered: Jul 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Thank alot. Can I assume /etc/profile is identical to autoexec.bat is MSDOS?
 
Old 07-13-2006, 04:50 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

It's not identical, but the comparison is close enough.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Add file content to a variable (bash)? LinuxSeeker Programming 4 12-19-2005 02:41 PM
howto add an environment variable dtra Linux - Newbie 4 04-18-2005 07:22 PM
edit .bash_profile, trying to add variable, didn't work feetyouwell Linux - Software 4 08-29-2004 05:14 PM
"How do i add an Environmental Variable in Redhat 8 ???? jmax24 Linux - Software 1 04-17-2004 01:30 AM
how to add environment variable to .bashrc file hasan Linux - General 7 10-03-2003 05:43 PM


All times are GMT -5. The time now is 05:10 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration