hi
i have two accounts .in the first account when i login i get this message
Quote:
[bala@localhost ~]$ su - bala
Password:
-bash: export: `=/usr/java/jdk1.6.0_02': not a valid identifier
|
the
env command displays these values
Quote:
MAIL=/var/spool/mail/bala
PATH=/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
INPUTRC=/etc/inputrc
PWD=/home/bala
LANG=en_US.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
|
e.t.c....
when i login in to the second account i dont get any error messages
and when i give the command
env i get these values
Quote:
MAIL=/var/spool/mail/bharani
PATH=/usr/java/jdk1.6.0_02/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin
INPUTRC=/etc/inputrc
PWD=/home/bharani
JAVA_HOME=/usr/java/jdk1.6.0_02
LANG=en_US.UTF-8
SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass
|
e.t.c....
in this second account we can see that the PATH variable contains path for java(but not in the first account).
so where does this variable is stored .
both the accounts .bash_profile and .bashrc files are identical.
Also in the first accounts shell there is no java command and in the second account it has .
both the accounts show the same paths( java: /etc/java /usr/lib/java /usr/share/java) for the
whereis java command
if i have to set these variables globally for all users what should i do .
is there any way to know the file name and its location in which a particular environment variable has been set.
thank u