Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Cannot get past login screen

I keep trying to log in on start up, typing my password and pressing enter. But it doesn't go through. I just get kicked back to the login screen. I know I don't have the password wrong. Have I done something to lock myself out?

I was messing around with Macchanger before this happened. Just wlan0. nothing else. Used sudo a couple of times. Did nothing as root.

share|improve this question

marked as duplicate by Jorge Castro, Ringtail, Eliah Kagan, Eric Carvalho, qbi Jan 19 '13 at 10:18

This question was marked as an exact duplicate of an existing question.

Can you check the ownership of your .Xauthority file like on this question?… – Jorge Castro Jan 18 '13 at 19:23
I'm currently logged in as guest and this is what is returned. -rw------- 1 guest-u0yQOJ guest-u0yQOJ 60 Jan 18 13:13 /tmp/guest-u0yQOJ/.Xauthority – teslasmoustache Jan 18 '13 at 19:29
The instructions on that page worked. 'Ctrl + Alt + F1. Login as user. sudo aptitude reinstall xorg. cd ~/. sudo mv .Xauthority .XauthorityBak. Then I could log in.' – teslasmoustache Jan 18 '13 at 20:20
Reinstalling xorg seems like overkill. All you really need to do is delete the .Xauthority file rm ~/.Xauthority and X will recreate next time. Renaming the file (mv ...bak) has the same effect. – chaskes Jan 18 '13 at 20:33

Keep Shift pressed when GRUB runs. It should bring you to the GRUB menu.

There you can choose to edit default boot option. Append ' single' (without quotes) to the end of the kernel prompt and choose to continue.

The system should boot into root shell. If your username is 'username' (without quotes), you can change password to the one you know and reboot into normal session:

# passwd username
Enter password:
Confirm password:
# reboot
share|improve this answer
This approach can be problematic in case the user has an encrypted home directory. – guntbert Jan 18 '13 at 21:34

I had a similar problem recently. I found out that one of the files in my profile was owned by root instead of my user.

As mentioned in the other comments, get to a command line and check the ownership of the files, especially ~/.Xauthority, they should be owned by your user.

If not, take ownership with: sudo chown : ~/.Xauthority

Where <user> is your user id.

share|improve this answer

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