I am trying to put a system-wide PATH= variable, but nothing seems to work.
Firstly, I added a lines in /etc/profile. Somewhere here:
# Path manipulation
if [ "$EUID" = "0" ]; then
pathmunge /usr/local/sbin after
pathmunge /usr/sbin after
pathmunge /sbin after
Then, I removed these lines, and added sh-script in /etc/profile.d/ with something like (this is what I've found in one post; example is with JDK):
echo 'export JAVA_HOME=/opt/jdk1.5.0_12' > /etc/profile.d/jdk.sh
echo 'export PATH=$JAVA_HOME/bin:$PATH' >> /etc/profile.d/jdk.sh
That did not work either. So, I wonder how to put permanent and system-wide PATH=?
Thanks in advance!