-   Linux - Newbie (
-   -   Global (shell) environment variable question (

Seventh 04-05-2007 03:38 PM

Global (shell) environment variable question
This has to be simple.

I have maven installed on my machine. I have users that ssh into it to run their builds.

If I login and type 'mvn -version', I get file not found. I have to manually export:

export JAVA_HOME=/usr
export PATH=/usr/local/maven-2.0.5/bin:$PATH

for it to run. This works until I log out. I know I can set it in my own .bashrc file, but I want these variables to be set for anyone that logs in via the shell, regardless.

How do I set these environment variables so that they don't disappear every time someone logs out?

Cheers :)

nilleso 04-05-2007 04:18 PM

I believe what you want is /etc/bash.bashrc


All times are GMT -5. The time now is 06:18 AM.