Search This Blog

Wednesday, March 16, 2011

Make PATH variable permanent on SSH login attempt/ Make PATH variable permanent on Ubuntu Linux

 

If you just want to have PATH variable available on a simple SSH login add the following like to your .profile:
export PATH=$PATH:/usr/local/lib/jdk1.6.0_24/bin

If you want to have PATH variable to be available after “su” login  change ENV_SUPATH & ENV_PATH
in file: /etc/login.defs

add this line:
export PATH=$PATH:/usr/local/lib/jdk1.6.0_24/bin
to all your users .bashrc files

You can always make symbolic links to /usr/local/bin.

Go to: /usr/local/bin
Execute: ln -s /usr/local/lib/jdk1.6.0_24/bin/* .
(don’t forget the dot at the end)

No comments:

Post a Comment

If you like this post, please leave a comment :)