LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to add a environ. variable to all users? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-add-a-environ-variable-to-all-users-463754/)

moeen49 07-13-2006 03:25 PM

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

druuna 07-13-2006 03:36 PM

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.

moeen49 07-13-2006 03:46 PM

Thank alot. Can I assume /etc/profile is identical to autoexec.bat is MSDOS?

druuna 07-13-2006 03:50 PM

Hi,

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


All times are GMT -5. The time now is 03:26 AM.