PDA

View Full Version : bash: /root: is a directory ??


umanga
5th January 2010, 02:50 AM
Greetings all,

In the freshly installed Fedora 12 , i installed java and maven and added following files into /etc/profile.d folder:

java.sh
export JAVA_HOME=/opt/jdk1.6
export PATH=$JAVA_HOME/bin:$PATH

maven.sh
export MAVEN_HOME=/opt/maven
export PATH=$MAVEN_HOME/bin:$PATH

now when i try to login to "root" accoumt giving "su" command , it gives me the error :

bash: /root: is a directory

what sees to be the problem ?

thanks

Firewing1
5th January 2010, 08:00 AM
It's always best to put variable values in quotes:
export PATH="$MAVEN_HOME/bin:$PATH"
and the same for java too!