Dear All,
In root mode, I added following lines to /root/.bashrc
export JAVA_HOME=/opt/SUNWappserver
export CATALINA_HOME=/opt/tomcat
Later, I found that if I am not super user,
echo $JAVA_HOME returns blank.
Only in root mode,
echo $JAVA_HOME returns /opt/SUNWappserver
I thought anything in root is available to general users. Why is not
this time?
Thank you very much.
James Westby - 21 Mar 2006 17:48 GMT
> Dear All,
>
[quoted text clipped - 11 lines]
> I thought anything in root is available to general users. Why is not
> this time?
That's not true. This is the correct behaviour (on my distro at least).
James
Gordon Beaton - 21 Mar 2006 17:49 GMT
> In root mode, I added following lines to /root/.bashrc
[...]
> I thought anything in root is available to general users. Why is not
> this time?
If you have questions about Linux or bash, there are more appropriate
groups than this one, which is about programming in Java.
That said, root is a user (much) like any other, so changes to root's
login files affect root only. If you want to change everyone's
environment, look for appropriate files in /etc.
/gordon

Signature
[ do not email me copies of your followups ]
g o r d o n + n e w s @ b a l d e r 1 3 . s e