I am trying to log in to an old desktop i used over a year ago, using lubuntu. i remembered the password to decrypt it but i forgot the login password.

I have looked about and i was able to get into grub screen, i got to recovery menu and i changed it with "passwd username" confirmed changing of the password.

It said it was changed successfully, however when i try to log in, it doesn't say the password is wrong like all other wrong attempts, instead the screen goes dark for few seconds as if it's loading, but then the login screen reappears asking for password again.

I then also tried another "drastic" way i read on here using "nano -B /etc/shadow" and removing password so i just need to hit enter at login.

Now when it boots and gets to the login page, it doesn't show a box to enter password, just shows my username and login button, which is great. However when i click login the same thing happens as above....it just reloads the login page.

Please how can i access my account? and why have the above methods not worked for me?

I dont have many details, i believe the verion of lubuntu on the machine is 16.04.1

  • Maybe the following link help you, psychocats.net/ubuntu/resetpassword; but if you have encrypted home (not only encrypted disk) you will probably not be able to change password. You have to remember it! See also this link, help.ubuntu.com/stable/ubuntu-help/user-forgottenpassword.html – sudodus Sep 27 '17 at 14:11
  • Sorry, perhaps i wasnt very clear, Thats the method i first tried, as mentioned it worked, the password was changed, but it still does not log me in, it looks like its logging when i enter password i changed using that method, but then just reloads the login page. – Unknown Sep 27 '17 at 14:13
  • I added another link, that might help better. – sudodus Sep 27 '17 at 14:14
  • so you say the encryption is not alowing me to use the change password? – Unknown Sep 27 '17 at 14:14
  • Encrypted home (you can have different and separate encryption: encrypted disk, which you remember, and maybe encrypted home). – sudodus Sep 27 '17 at 14:16

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.