Bash env issues

Tyler Aviss tjaviss-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
Fri Feb 8 16:24:00 UTC 2013


How about if you use "su -m jira" ?


On Thu, Feb 7, 2013 at 6:31 AM, William Muriithi <william.muriithi-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org
> wrote:

>
> 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
>



-- 
Tyler Aviss
Systems Support
LPIC/LPIC-2/DCTS/CLA

"Computers don't make mistakes. They can, however, execute those provided
to them very quickly"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gtalug.org/pipermail/legacy/attachments/20130208/34c19853/attachment.html>


More information about the Legacy mailing list