Unable to set path in /etc/profile
Ed Cogburn
edcogburn at hotpop.com
Sat Jul 23 20:15:11 UTC 2005
Irene Zimmermann wrote:
> Current version (5.04)
>
> Unable to modify global path in /etc/profile.
>
> Appended the following as a root user:
>
> JDK_HOME=/usr/java/jdk
> JRE_HOME=${JDK_HOME}/jre
> JAVA_HOME=${JRE_HOME}
> export JDK_HOME JRE_HOME JAVA_HOME
> PATH=${JDK_HOME}/bin:${JRE_HOME}/bin:${PATH}
> export PATH
>
>
> echo $PATH returns the original path after reboot.
Hi,
Did you log out and log back in? Are you sure path isn't getting reset in
any files being read after /etc/profile ? Show us the entire /etc/profile,
and double check that your ~/bash_profile (or ~/.bash_login or ~/.profile)
isn't changing PATH again. If not sure, show us that file too.
More information about the ubuntu-users
mailing list