3

My computer wont allow me to login unless its as guest. I have pressed Ctrl+Alt+F1 and can login using my administrator account there, but not in the normal interface. I have done updates and upgrades from the terminal, and also tried to create a new admin user, and assigned the user to the same group as the administrator account, but cant login to that user either from the normal login screen.

When I login the screen flashes black and then returns to the login screen Is there a way to view an error log file to see what the error is that is returning me to the login screen? How can I do this to figure out what the problem is?

I have also followed instructions on this page Ubuntu gets stuck in a login loop.

It looks like a similar problem, but the fix did not work for me :(

I would like to get back into my admin account and my programs but I am stuck in guest

2 Answers2

3

I had the same problem. It seems there was some kind of problem in my ~/.profile file. Rename it to something else (so you don't loose it) and try logging in again.

This solved my problem.

0

for me, I had mistakenly overwritten my PATH in /etc/environment. I had done something like:

JAVA_8=/opt/jdk1.8.0_121
JAVA_HOME=$JAVA_8
GROOVY_HOME=/opt/groovy-2.3.9
GRADLE_HOME=/opt/gradle-2.0
IDEA_HOME=/opt/idea-IU-171.3780.107

PATH=${PATH}:${GRADLE_HOME}/bin:${JAVA_HOME}/bin:${IDEA_HOME}/bin

So, once I got to a terminal (ctrl + alt + F1), and tried to, e.g., 'cat', I was getting:

The command could not be located because '/bin' is not included in the PATH environment variable. echoing the PATH showed me that I had overwritten my PATH, so I had to manually set PATH:

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"

Then I could use vim (or whatever) to manually edit my /etc/environment back into a good state.

Hawkeye Parker
  • 595
  • 5
  • 8