ubuntu stuck in a login loop after editing profile file

Posted by varunit on Ask Ubuntu See other posts from Ask Ubuntu or by varunit
Published on 2012-06-09T13:31:02Z Indexed on 2012/06/09 16:47 UTC
Read the original article Hit count: 332

Filed under:
|

I'm stuck in a login loop now. What I did was edited /etc/profile as root and added the following line

export PATH = /opt/my jdk 7 path/bin:$PATH

After logging out and tried to login, I cannot

I have tried booting in recovery mode, entered root prompt and tried to edit the file in vi but it always opens in read only mode and hence cannot be saved.

I just need a way to delete that line and boot into ubuntu again. Please help me out guys..

© Ask Ubuntu or respective owner

Related posts about boot

Related posts about boot-failure