0

I can't log on, it lets me type my password in and almost logs in but then goes back to the login screen. Can't even login on the guest account. I tried Ctrl+Alt+F2 but it tells me my login is wrong even though I know it isn't.

Ubuntu 14.04.3

closed as off-topic by muru, karel, Zanna, Pilot6, Kaz Wolfe Jul 10 '17 at 16:58

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This describes a problem that can't be reproduced that seemingly went away on its own or was only relevant to a very specific period of time. It's off-topic as it's unlikely to help future readers." – muru, Zanna, Kaz Wolfe
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Please edit your question to include Ubuntu Version, Graphic hardware and installed driver – Bruni Oct 21 '15 at 18:46
  • Honestly am not sure what graphic hardware is or what you mean by installed driver but I'll add my version – Shauney Rhys Thomas Oct 21 '15 at 18:48
  • 1
    At the Ctrl+Alt+F2 prompt, make sure your are using your login name (usually all lower-case, with no whitespace) not your "full name" (which is what is usually displayed on the GUI login screen) – steeldriver Oct 21 '15 at 18:49
  • @ShauneyRhysThomas what had you done wrong? – Tim Oct 21 '15 at 19:21
  • 5
2

You may need to change your password, or you may have the wrong username (does happen!).

First restart, then the moment the BIOS screen goes, press and hold Left Shift. This will open the GBUB menu.

From there, chose Advanced options for Ubuntu and then "Ubuntu with Linux 3.16.0-**-generic (recovery mode). If the numbers are different, don't worry. Just make sure it is recovery mode.

Then select "Drop to root shell prompt":

Next run the command ls /home. That will give you a list of usernames - check that yours is in that list (mine is tim).

If it is, then we will see if we can login from here. Type the following, followed by enter:

sudo login <username>

replace <username> with the username we just checked is correct. It will ask you for your username, like this:

If you get it correct, you should see a prompt that says "User@Computer-Name:~$". If the password is wrong, it will show "Login incorrect".

If your login is incorrect, we need to change it. That's pretty simple.

First, mount your file system:

mount -o remount,rw /

then just use this command:

sudo passwd <username>

and change username out for your username.

It will ask you for a password twice - make sure to enter the same one both times.

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