0

I have the issue described here: after a sudden stop, I can no longer log in because the computer simply flashes the login screen whenever I enter the correct password.

I followed the solution described in the top answer to that question, and rebooted. However, the issue persisted.

I noticed that on login Ubuntu is asking for Alex; when I reset the password using the procedure there I was told that there is no account Alex, but cut -d: -f1 /etc/passwd revealed an account alex, which I did reset the password for.

On the login screen I hit Ctrl+Alt+F1 to bring up ttyl1, which prompted me for username and password again. Entered alex and the same password as before, again, and this time it worked...I'm now logged into alex@alex-VirtualBox.

What's going on, exactly? How do I get back to logging in?

  • GUI login displays the GECOS fullname whereas CLI logins use the username - if you do cut -d: -f1,5 /etc/passwd or (better IMHO) getent passwd alex it should clarify – steeldriver Jan 25 '17 at 3:05
  • getent passwd alex states alex:x:1000:1000:Alex,,,:/hom/alex:/bin/bash. The former command says a bunch more things, but the important bit seems to be alex:Alex,,,. – Aleksey Bilogur Jan 25 '17 at 3:12
  • This problem persisted after I used the aforementioned procedure again to change the password to a different one. I then created a new user (as here) with the same password and succeeded in logging in as that user instead. I don't suppose there's a way for my new user to "take over" my old one? – Aleksey Bilogur Jan 25 '17 at 3:27
  • Can you log in at the CLI (e.g. Ctrl-Alt-F2) with login name alex and the new password you set? – steeldriver Jan 25 '17 at 3:28
  • Yes I can.(4char) – Aleksey Bilogur Jan 25 '17 at 3:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.