Setting PATH problem
Running etch with kernel 2.6.12. I followed the tutorial for installing
sun java from http://www.crazysquirrel.com/computing/debian/java.jspx.
The problem is that I cannot seem to set the PATH variable. Here is a
clip from my /etc/profile.
# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))
# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).
if [ "`id -u`" -eq 0 ]; then
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/lib/java/bin:usr/lib/java/jre/bin"
else
PATH="/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin"
fi
I want to set the java path system wide and the end result of this is:
/bin/bash: /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games: No such file or directory
The path statement is correct. Permissions are okay. What could be
blocking the path. Does not work for root or regular user.
TIA,
Jim
-- I started using something better than the "standard" back when IBM advertised
OS/2 Warp on TV. As Linux matured I made the transition from OS/2 v4 to Linux.
You don't have to accept less than you deserve.
"Use the Power of the Penguin" Registered Linux user #316735
Reply to: