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?
1 Answer
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
).
.profile
does not prevent me from logging in to the TTY (Ctrl-Alt-F1 to F6). Did you try the TTY?.profile
error./usr/bin/nano
instead ofnano
, etc.)?