1

I tryied to set the JAVA_HOME environmet variable in the ~/.profile file and I made a mistake

    JAVA_HOME="/usr/lib/jvm/jdk1.6.0_37"
    PATH=$JAVA_HOME:PATH

the error is in the PATH referencing. I put PATH rather than $PATH. this prevents me from login.

I tried to edit the file using the recovery mode but it says that the file system is read only. so any suggestions how to deal with this issue.

thanks

Jorge Castro
  • 73,717
nafaa
  • 33

2 Answers2

0

Boot a live CD, mount the partition and edit the file (use sudo if you have to -- no password required).

belacqua
  • 23,540
Dazed_75
  • 427
0

Log in as another user that can sudo, or failing that start back up in resuce more, then before you edit the file remount the partition read write

mount / -o remount -w should work just fine.

Take a look at this question for more information on remounting.

coteyr
  • 18,724