LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 03: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, 03:36 PM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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, 03: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, 03:50 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

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


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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:42 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