Fedora Linux Support Community & Resources Center
  #1  
Old 5th January 2010, 02:50 AM
umanga Offline
Registered User
 
Join Date: Nov 2009
Posts: 7
linuxfedorafirefox
Question bash: /root: is a directory ??

Greetings all,

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

java.sh
Code:
export JAVA_HOME=/opt/jdk1.6
export PATH=$JAVA_HOME/bin:$PATH
maven.sh
Code:
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 :
Quote:
bash: /root: is a directory
what sees to be the problem ?

thanks
Reply With Quote
  #2  
Old 5th January 2010, 08:00 AM
Firewing1's Avatar
Firewing1 Offline
Administrator
 
Join Date: Dec 2004
Location: Canada
Age: 22
Posts: 9,224
macossafari
It's always best to put variable values in quotes:
Code:
export PATH="$MAVEN_HOME/bin:$PATH"
and the same for java too!
__________________
[+] My open source software and blog
[+] Some of my howtos: (for full list, click here)
Reply With Quote
Reply

Tags
bash, directory, or root

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting my .bash home directory? thesun Using Fedora 18 6th December 2009 03:21 PM
Directory Listing in Bash kramulous Programming & Packaging 4 6th September 2009 12:41 PM
mount: error mounting /dev/root on /sys/root as ext3: no such file or directory nutty Hardware & Laptops 0 12th February 2009 11:00 PM
How can I mount a directory out of the root directory kanbowei Using Fedora 7 13th November 2007 03:40 PM


Current GMT-time: 06:09 (Tuesday, 21-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat