3

I recently inserted an error into my .profile file and now logging in just presents me back to the log in page, much like in this question. I've booted into recovery mode and recovered my encrypted /home/ partition, but I can't edit .profile from there. I know how to fix the file, just not how to get to do so. What are my options?

4
  • An error in my .profile does not prevent me from logging in to the TTY (Ctrl-Alt-F1 to F6). Did you try the TTY?
    – muru
    Dec 7, 2014 at 16:32
  • I can log in that way but bash commands don't work due to the .profile error. Dec 7, 2014 at 17:01
  • No commands at all? Even with full paths (/usr/bin/nano instead of nano, etc.)?
    – muru
    Dec 7, 2014 at 17:02
  • Full paths of course! Sorted now, thanks for the help. Can you post this as an answer and I'll accept? Dec 7, 2014 at 17:07

1 Answer 1

2

While an error in .profile does cause the GUI to loop back to the login screen, you can log in to the TTYs (CtrlAltF1 (or F2 through F6)). Depending on your specific problem, your PATH may or may not be affected. If you find you cannot run commands, try with full paths (/usr/bin/nano vs just nano).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .