Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 12.10 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

share|improve this question
1  
Have you followed the answer correctly? If you followed the answer, please include the exact commands you have given and the output (if any). Imp. point - chown username:username .Xauthority in this cocmmand you need to replace username with your administrative account name (case sensitive) –  Web-E Aug 12 '13 at 19:15
    
My username is Administrator on the pc, there was only an administrator user and a guest option. –  Gotaclick.com Aug 13 '13 at 8:20
    
I did the command: chown administrator:administrator .Xauthority and it just goes to the next line. If I look at the list of files it does say that the file is administrator, administrator, 0 bytes and -rw--------. When I did ls -ld /tmp I see that it does look like this drwxrwxrwt 15 root root 4096 Nov 30 04:17 /tmp. Should that not also be administrator administrator? I also did dpkg-reconfigure lightdm and that just goes to the next line, so I cant see if anything happens. –  Gotaclick.com Aug 13 '13 at 8:27
    
Is there a way to see a log file of what is going wrong when it tries to login? Surely then I will be able to see what is failing and maybe fix that? –  Gotaclick.com Aug 13 '13 at 8:28
add comment

1 Answer

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.

share|improve this answer
1  
This actually helped me, probably a typo in my profile and rendered my linux box unused. Have tried other fixes but this simple one made the trick –  roy riojas Feb 26 at 1:13
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.