Bash env issues

William Muriithi william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Thu Feb 7 14:31:48 UTC 2013


Morning

Came across an odd issue and wonder if someone can explain if its normal.

I set my java home on  /etc/environment and assumed it should work across
accounts.

-bash-4.1$ cat /etc/environment
JAVA_HOME="/usr/bin/java"

When I ssh in, I can see its working when I type env.  However, if I "su -
jira" to a system account, or even another user account, java home don't
show up on env.

I am still able to locate java though so may be no a issue when I type Java
version.  Just got curious why that is the case.

Regards

William
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20130207/8ddaa09f/attachment.html>


More information about the Legacy mailing list