How do I set global environment variables in Ubuntu, in such a way, that they would apply also to root
user?
Setting PATH
or JAVA_HOME
in /etc/environment
or in /etc/profile.d/my_settings.sh
both works for usual user, but not for root
.
I'm logging in as root using sudo bash
or sudo zsh
.
NOTE: using Ubuntu 10.04.